[compiler][snap] Fix test filter + watch mode

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`.
This commit is contained in:
Mofei Zhang
2025-03-28 15:58:06 -04:00
parent 8039f1b2a0
commit 533db98c6f
+1 -1
View File
@@ -146,7 +146,7 @@ function subscribeFilterFile(
state: RunnerState,
onChange: (state: RunnerState) => void,
) {
watcher.subscribe(process.cwd(), async (err, events) => {
watcher.subscribe(PROJECT_ROOT, async (err, events) => {
if (err) {
console.error(err);
process.exit(1);