60frames / jestpack

Jest Webpack Integration
MIT License
66 stars 3 forks source link

Cannot read property 'plugin' of undefined #20

Open frockert opened 5 years ago

frockert commented 5 years ago

Hey there, I am pretty new to webpack and jest and I am trying to add tests to a new codebase I just started contributing to.

I followed the docs for the set up but when I run webpack && jest pointing to my config file I get the following issue


        compiler.parser.plugin('call jest.dontMock', resolveArgument);
                        ^

TypeError: Cannot read property 'plugin' of undefined
    at JestpackPlugin.apply (/node_modules/jestpack/Plugin.js:34:25)
    at plugins.forEach.plugin (/usr/local/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/ResolverFactory.js:276:10)
    at Array.forEach (<anonymous>)```