Skip to content

Commit

Permalink
compiler: revert #29720 to unbreak filter mode in snap
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
josephsavona committed Jun 6, 2024
1 parent eabb681 commit 0197aca
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 @@ -218,7 +218,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 0197aca

Please sign in to comment.