Skip to content

Commit df41afb

Browse files
authored
fix jest watch in non-worktree (#609)
1 parent ce90543 commit df41afb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jest.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ module.exports = () => {
1010
global.JEST_ROOT_CONFIG = true
1111

1212
const config = createJestTSConfig({
13-
projects: ['<rootDir>/packages/*'],
13+
projects: [
14+
// being explicit here, as a globbing bug means that using packages/* can cause problems in non-worktrees (haven't fully investigated yet).
15+
'<rootDir>/packages/core',
16+
'<rootDir>/packages/core-integration-tests',
17+
'<rootDir>/packages/node',
18+
'<rootDir>/packages/browser',
19+
],
1420
})
1521
return config
1622
}

0 commit comments

Comments
 (0)