Open jamesarosen opened 2 years ago
This isn't hard to fix manually:
// .eslintrc.js
{
overrides: [
files: ['server/**/*.test.js'],
rules: {
'lodash/prefer-noop': 0,
}
]
}
I'm wondering whether that should be in the default eslint-config. What do others think?
The
lodash/prefer-*
rules, notablylodash/prefer-noop
, cause issues with Jest Mocks.For example:
This causes the error
The problem is that
jest.mock
can't reference the importednoop
.