File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 8484 # Remove config line that points "reselect" to the `src` folder,
8585 # so that the typetest will use the installed version instead
8686 - name : Erase path aliases
87- run : sed -i -e /@remap-prod-remove-line/d tsconfig.base.json vitest.config.mts
87+ 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
@@ -227,7 +229,9 @@ jobs:
227229 run : yarn add ./package.tgz
228230
229231 - name : Erase path aliases
230- run : sed -i -e /@remap-prod-remove-line/d ./ tsconfig.base.json ./vitest.config.mts
232+ run : sed -i -e /@remap-prod-remove-line/d tsconfig.base.json
231233
232234 - name : Run local tests against the build artifact
235+ env :
236+ TEST_DIST : true
233237 run : yarn test
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ export default defineConfig({
66 globals : true ,
77 setupFiles : [ 'test/setup.ts' ] ,
88 alias : {
9- reselect : new URL ( 'src/index.ts' , import . meta. url ) . pathname , // @remap -prod-remove-line
9+ reselect : new URL (
10+ process . env . TEST_DIST ? 'node_modules/reselect' : 'src/index.ts' ,
11+ import . meta. url
12+ ) . pathname ,
1013
1114 // 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
1215 '@internal' : new URL ( 'src' , import . meta. url ) . pathname
You can’t perform that action at this time.
0 commit comments