Skip to content

Commit ff3862e

Browse files
committed
Default to TS's polling watcher for our tests
The filesystem watcher (which they changed to by default in TS 4.9) is just too unstable in the GH Actions runner for us to count on.
1 parent 4fcc033 commit ff3862e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-packages/test-utils/src/project.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const ROOT = pathUtils.normalizeFilePath(path.resolve(dirname, '../../ephemeral'
1717
interface TsconfigWithGlint {
1818
extends?: string;
1919
compilerOptions?: Record<string, unknown>; // no appropriate types exist :sigh:
20+
watchOptions?: Record<string, unknown>; // https://www.typescriptlang.org/tsconfig#watchOptions
2021
references?: Array<{ path: string }>;
2122
files?: Array<string>;
2223
include?: Array<string>;
@@ -69,7 +70,7 @@ export class Project {
6970
}
7071

7172
let project = new Project(rootDir);
72-
let tsconfig = {
73+
let tsconfig: TsconfigWithGlint = {
7374
compilerOptions: {
7475
strict: true,
7576
target: 'es2019',
@@ -80,6 +81,10 @@ export class Project {
8081
checkJs: false,
8182
...config.compilerOptions,
8283
},
84+
watchOptions: {
85+
watchFile: 'fixedPollingInterval',
86+
watchDirectory: 'fixedPollingInterval',
87+
},
8388
glint: config.glint ?? {
8489
environment: 'glimmerx',
8590
},

0 commit comments

Comments
 (0)