Skip to content

Commit c2be14d

Browse files
committed
Fix vitest.config.mts for @rtk-query/codegen-openapi
1 parent 0cf4b08 commit c2be14d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { createVitestConfig } from '@reduxjs/vitest-config';
2-
import path from 'node:path';
32

43
export default createVitestConfig({
54
test: {
65
alias: process.env.TEST_DIST
76
? {
8-
'@rtk-query/codegen-openapi': path.join(__dirname, '../..', 'node_modules/@rtk-query/codegen-openapi'),
7+
'@rtk-query/codegen-openapi': new URL('../../node_modules/@rtk-query/codegen-openapi', import.meta.url)
8+
.pathname,
99
}
1010
: undefined,
11-
pool: 'forks',
1211
setupFiles: ['./test/vitest.setup.ts'],
1312
},
1413
});

0 commit comments

Comments
 (0)