Commit 7b02452
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 #4321 parent eaa5668 commit 7b02452
8 files changed
Lines changed: 476 additions & 111 deletions
File tree
- lib/test_runner
- tests
- test_hooks_project
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments