diff options
Diffstat (limited to 'tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts')
-rw-r--r-- | tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts new file mode 100644 index 000000000..6fb44fcc6 --- /dev/null +++ b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts @@ -0,0 +1,11 @@ +import { assertSnapshot } from "../../../../test_util/std/testing/snapshot.ts"; +import { truth } from "./no_snaps_included.ts"; + +Deno.test("the truth", () => { + truth(); +}); + +// Create snapshot in .snap file, but it shouldn't be in the coverage output +Deno.test("snapshot excluded from coverage", async (context) => { + await assertSnapshot(context, {}); +}); |