Skip to content

Commit deb7859

Browse files
authored
[compiler][snap] Fix test filter + watch mode (#32780)
Accidentally broke this when migrating our test runner to use the bundled build #32758 The fix is pretty simple. File watcher should listen for changes in `packages/babel-plugin-react-compiler` instead of `cwd`, which is now `packages/snap`.
1 parent 1825990 commit deb7859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/packages/snap/src/runner-watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function subscribeFilterFile(
146146
state: RunnerState,
147147
onChange: (state: RunnerState) => void,
148148
) {
149-
watcher.subscribe(process.cwd(), async (err, events) => {
149+
watcher.subscribe(PROJECT_ROOT, async (err, events) => {
150150
if (err) {
151151
console.error(err);
152152
process.exit(1);

0 commit comments

Comments
 (0)