Skip to content

Commit 92341b1

Browse files
committed
fix(web): failing tests due to changes in 7c1afaf
1 parent 7c1afaf commit 92341b1

File tree

1 file changed

+6
-0
lines changed
  • packages/web/src/common/store/helpers

1 file changed

+6
-0
lines changed

packages/web/src/common/store/helpers/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export const createAsyncSlice = <
4444

4545
const reducers = {
4646
request: (state, _action: PayloadAction<Draft<RequestPayload>>) => {
47+
// When running tests, we use mock data, so we don't need to fetch the week events from the API
48+
// See comments in https://github.com/SwitchbackTech/compass/pull/338 for dev notes
49+
if (process.env.NODE_ENV === "test") {
50+
return;
51+
}
52+
4753
state.isProcessing = true;
4854
state.isSuccess = false;
4955
state.error = null;

0 commit comments

Comments
 (0)