I have a very large array of JSON objects. I need to run Jest tests on each individual element. I tried iterating through the array first and then write the tests in the loop as such: However with this code Jest complains that ” Your test suite must contain at least one test.” Do I have to loop over this
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