@samitouri / QOS-React / commits / deb7859bb0

[compiler][snap] Fix test filter + watch mode (#32780)

Accidentally broke this when migrating our test runner to use the bundled build https://github.com/facebook/react/pull/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`.

mofeiZ committed Mar 28, 2025 at 16:03 UTC deb7859bb01831b68615c5e5416174eb4b4e0d58
1 file changed +1 -1
compiler/packages/snap/src/runner-watch.ts
+1 -1
@@ -146,7 +146,7 @@ function subscribeFilterFile(
146 state: RunnerState,
147 onChange: (state: RunnerState) => void,
148 ) {
149 - watcher.subscribe(process.cwd(), async (err, events) => {
149 + watcher.subscribe(PROJECT_ROOT, async (err, events) => {
150 if (err) {
151 console.error(err);
152 process.exit(1);