Skip to content

Commit 4b03353

Browse files
authored
fix: correct test regex to be more generic (#56)
1 parent 2208b7d commit 4b03353

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

jest.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ const eslintConfig = {
88
},
99
overrides: [
1010
{
11-
files: ['test/**/*'],
11+
files: [
12+
'**/*.test.ts',
13+
'**/*.test.tsx',
14+
'**/*.test.js',
15+
'**/*.test.jsx',
16+
'**/*.spec.ts',
17+
'**/*.spec.tsx',
18+
'**/*.spec.js',
19+
'**/*.spec.jsx',
20+
],
1221
env: {
1322
jest: true, // now **/*.test.js files' env has both es6 *and* jest
1423
},

0 commit comments

Comments
 (0)