fix jest types by import @jest/globals

This commit is contained in:
wancat committed 2024-02-27 11:45:10 +08:00
1 parent 9e108e397b
commit b059cca7b2
8 files changed
+10 -2

No files matched your search

+2 -1
View File
@@ -63,9 +63,10 @@ module.exports = {
},
overrides: [
{
files: ['**/tests/**/*.js', '**/tests/**/*.ts'], // Adjust the pattern to match your test files
files: ['**/tests/**/*.js', '**/tests/**/*.ts', '**/*.test.ts'], // Adjust the pattern to match your test files
rules: {
'import/extensions': 'off', // Turn off the rule for test files
'import/no-extraneous-dependencies': 'off',
},
},
],