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:
Philip Molares 2021-04-18 14:02:55 +02:00
parent f731d2d455
commit f7e483da81

View file

@ -24,6 +24,12 @@ module.exports = {
assertFunctionNames: ['expect', 'request.**.expect'],
},
],
'jest/no-standalone-expect': [
'error',
{
additionalTestBlockFunctions: ['afterEach', 'beforeAll'],
},
],
},
},
],