Replies: 1 comment 1 reply
-
you could do bun test packages/bacon packages/lettuce This will match any test files that start with the path edit: this won't work within package's preloads |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently running
bun test
from the root of a bun monorepo and it's running all of my tests.But now I need to do some cleanup
afterEach
test in a specific sub package and I can't figure out how to do this...I can get it to work if I run
bun test --preload
in that particular package (or put abunfig.toml
in that package and run locally there) but I want it to work when running all tests across the monorepo and with myafterEach
only happening after every test within this package.I got it working pretty hackily like this:
Then run
bun run test
at the root (notbun test
).But it doesn't feel ideal (not least because the output formatting is much worse).
Is there a better way? Should
bun test
in a monorepo just runbun test
in each sub-package rather than searching for files to test from the root of the monorepo?Beta Was this translation helpful? Give feedback.
All reactions