[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`.
This commit is contained in:
mofeiZ
2025-03-28 16:03:08 -04:00
committed by GitHub
parent 1825990c56
commit deb7859bb0
+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);