Open mattfysh opened 1 month ago
for context - a global teardown might do things like shutting down a server, or clearing state from disk or db
workaround right now is to create a shell script, and do the beforeAll/afterAll there
but i've noticed that the afterAll
for individual test files is also not invoked, which is considerably more problematic
What version of Bun is running?
1.1.30+7996d06b8
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
bunfig.toml
tests/my.test.ts
setup.ts
Run
bun test --bail
What is the expected behavior?
the global teardown should be invoked, even if a test case failed
What do you see instead?
the global teardown is not invoked at the end of the test suite
Additional information
No response