Compare commits

...

1 Commits

Author SHA1 Message Date
Mofei Zhang
533db98c6f [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`.
2025-03-28 15:58:06 -04:00

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);