We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c1afaf commit 92341b1Copy full SHA for 92341b1
packages/web/src/common/store/helpers/index.ts
@@ -44,6 +44,12 @@ export const createAsyncSlice = <
44
45
const reducers = {
46
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
+
53
state.isProcessing = true;
54
state.isSuccess = false;
55
state.error = null;
0 commit comments