Closed googol7 closed 5 years ago
In a subdirectory src/utils/tests/subdir/something-test.js I get this error:
import sinon from „sinon"
'sinon' should be listed in the project's dependencies, not devDependencies.
In the root level it works without problems: src/utils/tests/semething-test.js import sinon from „sinon“
import sinon from „sinon“
This is because of:
'import/no-extraneous-dependencies': [ ERROR, { devDependencies: [ 'webpack.config.js', '**/__testUtils__/**/*.js', '**/__tests__/*-test.js' ] } ],
@googol7 Fixed and released in 3.0.
In a subdirectory src/utils/tests/subdir/something-test.js I get this error:
import sinon from „sinon"
In the root level it works without problems: src/utils/tests/semething-test.js
import sinon from „sinon“
This is because of: