This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
Using function as module factory in jest.mock causes test loading fail #44
Labels
issue with dependency
It is likely that a dependency is causing the issue being experienced.
If you use function instead of object as module factory in jest.mock call your test will not load. Jest documentation doesn't tell anything about validity of this syntax but nevertheless jest runner works with it https://jestjs.io/docs/en/jest-object#jestmockmodulename-factory-options.
Minimal repository: https://github.com/zzzorgo/vscode-jest-test-adapter-issue
There is repo with two issues i was just too lazy to create separate repos, look for jestMockWithFunction.test.js file
The text was updated successfully, but these errors were encountered: