Skip to content

Commit 29be136

Browse files
committed
chore(test): fix dev mode admin test by checking for script tag in output
1 parent 05748d7 commit 29be136

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

test/__snapshots__/dev.test.js.snap

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/dev.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ describe("module dev mode", () => {
1212

1313
test("admin", async () => {
1414
const html = await get("/admin/");
15-
expect(html).toMatchSnapshot();
15+
expect(html).toMatch(/.*<script[\s\S]*?>[\s\S]*?<\/script><\/body>/);
1616
});
1717
});

0 commit comments

Comments
 (0)