-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.js
More file actions
28 lines (28 loc) · 938 Bytes
/
jest.js
File metadata and controls
28 lines (28 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
plugins: ['@fs/zion'],
rules: {
'@fs/zion/prefer-zion-render': 'off',
// TODO: consider renaming this file since it effects more than Jest tests
'@fs/zion/logical-over-directional': 'warn',
},
overrides: [
{
files: ['*.test.[tj]s?(x)'],
extends: ['plugin:jest-dom/recommended', 'plugin:testing-library/react'],
rules: {
'jest/no-large-snapshots': 'error',
'testing-library/no-debugging-utils': 'off',
'testing-library/no-node-access': 'off', // TODO this rule was enabled for new testing-library
'jest/expect-expect': ['warn', { assertFunctionNames: ['expect', '*expect*'] }],
},
},
{
files: ['*'],
excludedFiles: ['cypress/**/*', '**/*.spec.*', '**/*.cy.*'],
extends: ['plugin:jest/recommended'],
rules: {
'jest/no-disabled-tests': 'error', // Override warn default to error
},
},
],
}