File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8787 run : sed -i -e /@remap-prod-remove-line/d tsconfig.base.json
8888
8989 - name : Test types
90+ env :
91+ TEST_DIST : true
9092 run : |
9193 yarn tsc --version
9294 yarn type-tests
@@ -230,4 +232,6 @@ jobs:
230232 run : sed -i -e /@remap-prod-remove-line/d tsconfig.base.json
231233
232234 - name : Run local tests against the build artifact
233- run : yarn test --mode test-ci
235+ env :
236+ TEST_DIST : true
237+ run : yarn test
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitest/config'
22
3- export default defineConfig ( ( { mode } ) => ( {
3+ export default defineConfig ( {
44 test : {
55 watch : false ,
66 globals : true ,
77 setupFiles : [ 'test/setup.ts' ] ,
88 alias : {
99 reselect : new URL (
10- mode === 'test-ci' ? 'node_modules/reselect' : 'src/index.ts' ,
10+ process . env . TEST_DIST ? 'node_modules/reselect' : 'src/index.ts' ,
1111 import . meta. url
1212 ) . pathname ,
1313
1414 // 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
1515 '@internal' : new URL ( 'src' , import . meta. url ) . pathname
1616 }
1717 }
18- } ) )
18+ } )
You can’t perform that action at this time.
0 commit comments