Repository navigation
Replies: 1 comment
|
For the bun test --only ./add.test.tsBun’s documented You can also isolate that suite without changing the source: bun test ./add.test.ts --test-name-pattern "negative numbers"The name filter is documented in the test runner guide. There is also a distinction between code that defines/registers tests and code inside an For |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I skip tests (either with .only or .skip) the code inside the skipped tests seems to still be running but the expectations are omitted. This is particularly bothering when using console.logs inside the tested code since you don't know which case is running.
example:
In this case we'll see 2 logs. I would expect that the skipped tests don't run at all so we can only see one log.
Is it correct to see 2 logs? In that case, how do you debug your code when a test is failing?
All reactions