I have a project that runs the test files named \"*.test.ts\" with jest and ts-jest. This is fine but when I launch webpack, I get errors for the test files:
ERR
Found it. My version of 'ts-loader' was behind and somehow did not manage to properly handle installed @types.
Rule of thumb: pack, build, transpile issues: upgrade dev dependencies.