Open hussain-nz opened 4 months ago
Hi! Are you adding the path to your file in the bunfig.toml?
/bunfig.toml preload = ['./src/tests/bun.plugins.ts']
Yup I've added it. I've resorted to using mock.module(param1, param2)
and it's kind of working
Hello, thank you for creating this plugin! I created
/src/tests/bun.plugins.ts
file with this content:However, running a single bun test gives me an error. Bun command:
bun test .\src\pages\path\FileBeingTested.test.tsx
Error:I tried removing the
src/
from here but it has the same error:Any thoughts?