Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jun 21, 2024
1 parent c3194c6 commit ea448e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export default defineConfig({
globals: true,
setupFiles: ['test/setup.ts'],
alias: {
reselect: new URL('src/index.ts', import.meta.url).pathname, // @remap-prod-remove-line
'reselect/package.json': new URL('./package.json', import.meta.url).pathname,
reselect: new URL(
process.env.CI ? 'node_modules/reselect' : 'src',
import.meta.url
).pathname,

// this mapping is disabled as we want `dist` imports in the tests only to be used for "type-only" imports which don't play a role for jest
'@internal': new URL('src', import.meta.url).pathname
Expand Down

0 comments on commit ea448e9

Please sign in to comment.