eslint jest
This commit is contained in:
+4
-2
@@ -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'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user