Skip to content

Commit ca2566e

Browse files
committed
fix(globs): adjust globs for test related files
This fixes issues where test setups and similar are not correctly seen as Node.js files with their globals. Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent ab27516 commit ca2566e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/globs.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ export const GLOB_FILES_TESTING = [
88
'**/*.test.*',
99
'**/*.spec.*',
1010
'**/*.cy.*',
11-
'**/test',
12-
'**/tests',
11+
'**/test/**',
12+
'**/tests/**',
13+
'**/__tests__/**',
14+
'**/__mocks__/**',
1315
]
1416

1517
/** Glob pattern for Typescript files */

0 commit comments

Comments
 (0)