eslint jest
This commit is contained in:
+4
-2
@@ -6,7 +6,7 @@ module.exports = {
|
||||
'node': true,
|
||||
'jest/globals': true
|
||||
},
|
||||
'extends': ['eslint:recommended'],
|
||||
'extends': ['eslint:recommended', 'plugin:jest/recommended'],
|
||||
'parserOptions': {
|
||||
'ecmaVersion': 12
|
||||
},
|
||||
@@ -34,6 +34,8 @@ module.exports = {
|
||||
'brace-style': [
|
||||
'error',
|
||||
'1tbs'
|
||||
]
|
||||
],
|
||||
'jest/no-done-callback': 'off',
|
||||
'jest/expect-expect': 'off'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,7 +8,6 @@ beforeAll(() => {
|
||||
if (fs.existsSync(configFile)) {
|
||||
fs.renameSync(configFile, tmpConfigFile);
|
||||
}
|
||||
expect(fs.existsSync(configFile)).toBeFalsy();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
|
||||
Reference in New Issue
Block a user