You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @cloudflare/vitest-pool-workers, the mocks defined in Vitest's __mocks__ directory do not work as expected.
Expected behavior:
Modules defined in the __mocks__ directory should automatically be used as mocks.
Actual behavior:
When using @cloudflare/vitest-pool-workers, the modules in __mocks__ are not applied. Instead, Vitest's default mocking behavior is used.
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What versions are you using?
2.1.8 [vitest], 0.5.40 [@cloudflare/vitest-pool-workers]
What operating system and version are you using?
macIS Sequoia 15.1.1
Please provide a link to a minimal reproduction
https://github.com/saitolume/workers-sdk-bug-report
Describe the Bug
When using
@cloudflare/vitest-pool-workers
, the mocks defined in Vitest's__mocks__
directory do not work as expected.Modules defined in the
__mocks__
directory should automatically be used as mocks.When using
@cloudflare/vitest-pool-workers
, the modules in__mocks__
are not applied. Instead, Vitest's default mocking behavior is used.Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: