Skip to content

Commit 98b7b67

Browse files
fix: relax test rules (#64)
1 parent 4745549 commit 98b7b67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

configs/jest.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ async function getJestRecommendedConfig() {
212212
// Allow to have any regexps in tests, useful to clean up/etc
213213
"no-control-regex": "off",
214214

215+
// Allow to use any builtins, syntax and node API in tests
216+
"n/no-unsupported-features/es-builtins": "off",
217+
"n/no-unsupported-features/es-syntax": "off",
218+
"n/no-unsupported-features/node-builtins": "off",
219+
220+
// Allow to `require` and `import` any things in tests
221+
"n/no-unpublished-require": "off",
222+
"n/no-unpublished-import": "off",
223+
215224
// Doesn't require jsdoc for tests, they are either redundant or we have a separate task for checking types of tests
216225
"jsdoc/require-jsdoc": "off",
217226
},

0 commit comments

Comments
 (0)