jest-webpack icon indicating copy to clipboard operation
jest-webpack copied to clipboard

Use jest with webpack.

Results 22 jest-webpack issues
Sort by recently updated
recently updated
newest added

``` yarn jest-webpack --config ./config/jest.config.js --rootDir . ``` gives: ``` Error: Can't find a root directory while resolving a config file path. Provided path to resolve: ./config/jest.config.js cwd: /home/foton/workspace/self_study/webpack/.cache/jest-webpack at...

I tried to specify a different webpack config file by calling `jest-webpack --webpack --config webpack.tests.config.js`. That did not work because jest also recognizes the `--config` option and complains about an...

The last commit for this package was in 2018, and this package seems to be unusable for fairly new versions of Jest. There are at least 3 open issues about...

Error: Cannot find module 'webpack-cli/bin/config-yargs' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at /Users/lijialong/Documents/study/webpack-study/7/node_modules/jest-webpack/jest-webpack.js:40:26 at tryRequire (/Users/lijialong/Documents/study/webpack-study/7/node_modules/jest-webpack/jest-webpack.js:15:21) at run (/Users/lijialong/Documents/study/webpack-study/7/node_modules/jest-webpack/jest-webpack.js:38:5) at Object. (/Users/lijialong/Documents/study/webpack-study/7/node_modules/jest-webpack/jest-webpack.js:89:3) at Module._compile...

I see that there is still some effort needed to bridge jest. How about instead of bridging jest, providing a mode that builds all the tests in some dir, and...

config-yargs.js within webpack-cli has been moved inside an extra directory called config. This pull request allows jest-webpack to find it. Should fix some or all of Issues #27 #38 #40

With the following version of webpack and webpack-cli ``` { "webpack": "^4.33.0", "webpack-cli": "^3.3.2" } ``` The `webpack-cli/bin/config-yargs` has been moved to `webpack-cli/bin/config/config-yargs`

``` > ./node_modules/.bin/jest-webpack /Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:149 const shortResource = relative(this.compilation.compiler.options.context, resource); ^ TypeError: Cannot read property 'compiler' of null at SharedData.compileFile (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:149:54) at SharedData.compileModule (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/shared-data.js:275:10) at resolver (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/jest-webpack/src/entry-reference-plugin.js:73:24) at process.nextTick (/Users/Dylan/Development/PrivateUniProjects/my-repo-game-3/node_modules/webpack/lib/NormalModuleFactory.js:196:7) at...