mkg0 / jest-webpack-resolver

path resolver for jest through the webpack.config. Auto detect webpack's resolve properties like aliases, plugins and more
44 stars 6 forks source link

Support jest.config.js as for config. #2

Closed DzoQiEuoi closed 6 years ago

DzoQiEuoi commented 7 years ago

It would be nice if I configure this module in my jest config file instead of packages.json.

mkg0 commented 7 years ago

jest configuration doesn't allow custom config properties like 'jestWebpackResolver' and shows warning. But it can be good especially about testing for package's itself.

DzoQiEuoi commented 7 years ago

I'm trying to use this at the moment, but it throws an error on line 11 of index.js because it expect the file to be called jest.config.js whereas mine is jest.config.json.