diff --git a/packages/rehype-mermaid/test/index.test.ts b/packages/rehype-mermaid/test/index.test.ts index 9678727..136c378 100644 --- a/packages/rehype-mermaid/test/index.test.ts +++ b/packages/rehype-mermaid/test/index.test.ts @@ -31,6 +31,10 @@ it("renders diagram", async () => { .use(rehypeStringify) .process(await fs.readFile(new URL("./fixtures/a.md", import.meta.url))); - console.log(file.toString()); + file + .toString() + .match(/.{1,100}/g) + ?.forEach((x) => console.log(x)); + expect(file.toString()).toMatchFileSnapshot("./fixtures/a.html"); });