Replies: 2 comments 1 reply
-
|
you could do bun test packages/bacon packages/lettuceThis 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
-
|
hey @Jarred-Sumner have this limitation of the preload been addressed? Its a really nice feature that is holding me up, might need to move to vitest because of this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently running
bun testfrom the root of a bun monorepo and it's running all of my tests.But now I need to do some cleanup
afterEachtest 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 --preloadin that particular package (or put abunfig.tomlin that package and run locally there) but I want it to work when running all tests across the monorepo and with myafterEachonly happening after every test within this package.I got it working pretty hackily like this:
Then run
bun run testat 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 testin a monorepo just runbun testin 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