Skip to content

Commit

Permalink
[INF-535] Fix web-test (#8185)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Apr 22, 2024
1 parent 4e636ad commit d71db62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 0 additions & 15 deletions packages/web/src/common/store/cache/store.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d71db62

Please sign in to comment.