Skip to content

Commit

Permalink
compiler: revert facebook#29720 to unbreak filter mode in snap
Browse files Browse the repository at this point in the history
ghstack-source-id: 759544158a2853b60a71365b6bf8e9c29be47984
Pull Request resolved: facebook#29780
  • Loading branch information
josephsavona committed Jun 6, 2024
1 parent c4b433f commit bd60f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/packages/snap/src/runner-watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ function subscribeFilterFile(
} else if (
events.findIndex((event) => event.path.includes(FILTER_FILENAME)) !== -1
) {
state.filter = await readTestFilter();
if (state.mode.filter) {
state.filter = await readTestFilter();
state.mode.action = RunnerAction.Test;
onChange(state);
}
Expand Down Expand Up @@ -219,7 +219,7 @@ export async function makeWatchRunner(
action: RunnerAction.Test,
filter: filterMode,
},
filter: filterMode ? await readTestFilter() : null,
filter: await readTestFilter(),
};

subscribeTsc(state, onChange);
Expand Down

0 comments on commit bd60f0c

Please sign in to comment.