Skip to content

Commit 31a86c8

Browse files
committed
Add Vitest config for type tests
1 parent 940b366 commit 31a86c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/toolkit/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ const __dirname = path.dirname(__filename)
99

1010
export default defineConfig({
1111
test: {
12+
typecheck: { only: true, tsconfig: './src/tests/tsconfig.typetests.json' },
1213
globals: true,
1314
environment: 'jsdom',
1415
setupFiles: ['./vitest.setup.js'],
1516
include: ['./src/**/*.(spec|test).[jt]s?(x)'],
1617
alias: {
17-
'@reduxjs/toolkit/query/react': path.join(__dirname,'./src/query/react/index.ts'), // @remap-prod-remove-line
18+
'@reduxjs/toolkit/query/react': path.join(__dirname, './src/query/react/index.ts'), // @remap-prod-remove-line
1819
'@reduxjs/toolkit/query': path.join(__dirname, './src/query/index.ts'), // @remap-prod-remove-line
1920
'@reduxjs/toolkit/react': path.join(__dirname, './src/index.ts'), // @remap-prod-remove-line
2021
'@reduxjs/toolkit': path.join(__dirname, './src/index.ts'), // @remap-prod-remove-line

0 commit comments

Comments
 (0)