diff --git a/packages/web/src/common/store/cache/store.test.ts b/packages/web/src/common/store/cache/store.test.ts index 979154ebed5..1e1ca243053 100644 --- a/packages/web/src/common/store/cache/store.test.ts +++ b/packages/web/src/common/store/cache/store.test.ts @@ -1,5 +1,4 @@ import { Kind, Status } from '@audius/common/models' -import { IntKeys } from '@audius/common/services' import { cacheActions as actions, cacheReducer } from '@audius/common/store' import { makeKindId } from '@audius/common/utils' import { combineReducers } from 'redux' @@ -30,20 +29,6 @@ vitest.mock('@audius/common/store', async () => ({ CACHE_PRUNE_MIN: 1 })) -vitest.mock('services/remote-config/remote-config-instance', async () => { - return { - remoteConfigInstance: { - waitForRemoteConfig: vitest.fn(), - getRemoteVar: vitest.fn().mockImplementation((arg) => { - if (arg === IntKeys.CACHE_ENTRY_TTL) { - return Infinity - } - return undefined - }) - } - } -}) - const defaultProviders: StaticProvider[] = [ [getContext('remoteConfigInstance'), remoteConfigInstance], [getContext('getFeatureEnabled'), () => false] diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.ts index f5d566c0c95..2eb72f60ece 100644 --- a/packages/web/vite.config.ts +++ b/packages/web/vite.config.ts @@ -186,7 +186,8 @@ export default defineConfig(async ({ mode }) => { } } }, - exclude: ['e2e', 'node_modules'], + exclude: ['e2e', 'node_modules', 'dist'], + threads: false, minWorkers: 1, maxWorkers: 1 // Segfaults if multithreaded }