Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit fbb098e

Browse files
authored
Automatically enable "tests" config on common test files (#327)
1 parent bbdf0a6 commit fbb098e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ const config = {
7070
"n/prefer-global/buffer": "off",
7171
},
7272
overrides: [
73+
{
74+
files: [
75+
"**/__mocks__/**",
76+
"**/testUtils/**",
77+
"**/testHelpers.*",
78+
"**/*.test.ts",
79+
"**/*.test.tsx",
80+
"**/*.stories.tsx",
81+
],
82+
extends: ["./tests.js"],
83+
},
7384
{
7485
files: ["**/*.tsx", "**/use*.ts"],
7586
excludedFiles: ["*.test.tsx", "*.stories.tsx"],

tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
},
1212
plugins: ["jest", "testing-library"],
1313
extends: [
14+
"./development.js",
1415
"plugin:jest/recommended",
1516
"plugin:jest/style",
1617
"plugin:testing-library/react",

0 commit comments

Comments
 (0)