Skip to content

Commit 491defd

Browse files
committed
Fix issues in vitest.config.mts
1 parent 868df32 commit 491defd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/rtk-query-codegen-openapi/vitest.config.mts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ const __dirname = path.dirname(__filename);
88

99
export default defineConfig({
1010
test: {
11+
alias: process.env.TEST_DIST
12+
? {
13+
'@rtk-query/codegen-openapi': path.join(__dirname, 'node_modules/@rtk-query/codegen-openapi'),
14+
}
15+
: undefined,
1116
testTimeout: 10_000,
1217
pool: 'forks',
1318
globals: true,
1419
setupFiles: ['./test/vitest.setup.ts'],
15-
alias: {
16-
'@': path.join(__dirname, 'test/fixtures'),
17-
'@rtk-query/codegen-openapi': path.join(__dirname, 'src'),
18-
},
1920
},
2021
});

0 commit comments

Comments
 (0)