mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04: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
f731d2d455
commit
f7e483da81
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ module.exports = {
|
||||||
assertFunctionNames: ['expect', 'request.**.expect'],
|
assertFunctionNames: ['expect', 'request.**.expect'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
'jest/no-standalone-expect': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
additionalTestBlockFunctions: ['afterEach', 'beforeAll'],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue