We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14ce33 commit 76e7423Copy full SHA for 76e7423
jest.js
@@ -20,6 +20,22 @@ const eslintConfig = {
20
'jest/prefer-lowercase-title': ['error', { ignore: ['describe'] }],
21
'jest/no-hooks': 'off',
22
'jest/prefer-snapshot-hint': 'off',
23
+ 'jest/require-hook': [
24
+ 'error',
25
+ {
26
+ // allow the use of vitest functions
27
+ allowedFunctionCalls: [
28
+ 'beforeAll',
29
+ 'afterAll',
30
+ 'beforeEach',
31
+ 'afterEach',
32
+ 'describe',
33
+ 'it',
34
+ 'test',
35
+ 'vi.mock',
36
+ ],
37
+ },
38
39
},
40
41
],
0 commit comments