mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-11 02:50:44 +00:00
ESLint: Add extra rules for tests
Add afterEach and beforeAll as additional additionalTestBlockFunctions for jest/no-standalone-expect. This is necessary, because we use expects in those functions for the history service unit tests. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
ea7b0cb9c4
commit
0933b88ff5
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ module.exports = {
|
|||
assertFunctionNames: ['expect', 'request.**.expect'],
|
||||
},
|
||||
],
|
||||
'jest/no-standalone-expect': [
|
||||
'error',
|
||||
{
|
||||
additionalTestBlockFunctions: ['afterEach', 'beforeAll'],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue