Skip to content

Commit 7b02452

Browse files
committed
fix: run each test file in its own process
A test file's module state leaked into the next one because they were all loaded into the same process. With `@std/testing/bdd` this meant the global hooks of the second file either errored with "Cannot add global hooks after a global test is registered" or silently registered tests that never ran. `deno test` gives each test file its own isolate, so do the equivalent by spawning a process per file. Closes #432
1 parent eaa5668 commit 7b02452

8 files changed

Lines changed: 476 additions & 111 deletions

File tree

deno.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"tests/polyfill_disabled_project/npm",
5959
"tests/polyfill_project/npm",
6060
"tests/shim_project/npm",
61+
"tests/test_hooks_project/npm",
6162
"tests/test_project/npm",
6263
"tests/tla_project/npm",
6364
"tests/types_package_project/npm",

0 commit comments

Comments
 (0)