eslint jest

This commit is contained in:
Klemek
2021-03-30 15:07:08 +02:00
parent d194fbf032
commit 18b02cf267
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -6,7 +6,7 @@ module.exports = {
'node': true, 'node': true,
'jest/globals': true 'jest/globals': true
}, },
'extends': ['eslint:recommended'], 'extends': ['eslint:recommended', 'plugin:jest/recommended'],
'parserOptions': { 'parserOptions': {
'ecmaVersion': 12 'ecmaVersion': 12
}, },
@@ -34,6 +34,8 @@ module.exports = {
'brace-style': [ 'brace-style': [
'error', 'error',
'1tbs' '1tbs'
] ],
'jest/no-done-callback': 'off',
'jest/expect-expect': 'off'
} }
}; };
-1
View File
@@ -8,7 +8,6 @@ beforeAll(() => {
if (fs.existsSync(configFile)) { if (fs.existsSync(configFile)) {
fs.renameSync(configFile, tmpConfigFile); fs.renameSync(configFile, tmpConfigFile);
} }
expect(fs.existsSync(configFile)).toBeFalsy();
}); });
afterAll(() => { afterAll(() => {