Closed matronator closed 1 month ago
Note that bun test
is not the same as npm run test
, bun test
uses bun:test
. If you want to run the "test"
package.json script with Bun, you can instead do bun run test
.
Note that
bun test
is not the same asnpm run test
,bun test
usesbun:test
. If you want to run the"test"
package.json script with Bun, you can instead dobun run test
.
Oh my god, you're right! Oops, sorry, I guess this is not an issue then.
Hey @matronator, let me know if you have any feedback jsong the clarinet-sdk with Bun (performances and everything).
@Jarred-Sumner Thank you so much for taking the time to answer here 🙏
Describe the bug I don't know if this is a bug with
bun
as I haven't tried running the tests withnpm test
to see if it also fails. But when usingbun test
it throws an error that it can't find variablesimnet
. I had to add it manually to the test file (import and init). So it seems like thevitest
before hooks are not working properly, at least when usingbun
.To Reproduce Steps to reproduce the behavior:
clarinet contracts new <name>
bun i
bun test
Additional context here: