File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 77
77
run : yarn add ./package.tgz
78
78
79
79
- name : Erase path aliases
80
- run : sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json ./vitest.config.mts
80
+ run : sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json
81
81
82
82
- name : Test types
83
+ env :
84
+ TEST_DIST : true
83
85
run : |
84
86
yarn tsc --version
85
87
yarn type-tests
@@ -264,7 +266,9 @@ jobs:
264
266
run : yarn add ./package.tgz
265
267
266
268
- name : Erase path aliases
267
- run : sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json ./vitest.config.mts
269
+ run : sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json
268
270
269
271
- name : Run local tests against the build artifact
272
+ env :
273
+ TEST_DIST : true
270
274
run : yarn test
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ export default defineConfig({
6
6
setupFiles : [ 'test/setup.ts' ] ,
7
7
globals : true ,
8
8
alias : {
9
- 'react-redux' : new URL ( 'src/index.ts' , import . meta. url ) . pathname , // @remap -prod-remove-line
9
+ 'react-redux' : new URL (
10
+ process . env . TEST_DIST ? 'node_modules/react-redux' : 'src/index.ts' ,
11
+ import . meta. url ,
12
+ ) . pathname ,
10
13
// 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
11
14
'@internal' : new URL ( 'src' , import . meta. url ) . pathname ,
12
15
} ,
You can’t perform that action at this time.
0 commit comments