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 84
84
# Remove config line that points "reselect" to the `src` folder,
85
85
# so that the typetest will use the installed version instead
86
86
- 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
88
88
89
89
- name : Test types
90
+ env :
91
+ TEST_DIST : true
90
92
run : |
91
93
yarn tsc --version
92
94
yarn type-tests
@@ -227,7 +229,9 @@ jobs:
227
229
run : yarn add ./package.tgz
228
230
229
231
- 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
231
233
232
234
- name : Run local tests against the build artifact
235
+ env :
236
+ TEST_DIST : true
233
237
run : yarn test
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ export default defineConfig({
6
6
globals : true ,
7
7
setupFiles : [ 'test/setup.ts' ] ,
8
8
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 ,
10
13
11
14
// 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
12
15
'@internal' : new URL ( 'src' , import . meta. url ) . pathname
You can’t perform that action at this time.
0 commit comments