Skip to content
Advertisement

Tag: ts-jest

Using jest with files with glob imports

I utilize webpack with webpack-import-glob-loader to import files using glob pattern. So in one of my files (src/store/resources/module.ts) I have a line: When I run a test with ts-jest it fails and reports the following message: Cannot find module ‘../../modules/resources/providers/**/*.resource.ts’ from ‘src/store/resources/module.ts` I assume it complains because it can’t recognize this import syntax. How to make jest work for project

Advertisement