Skip to content

Commit cd92cc6

Browse files
committed
use output build for CI tests
1 parent 08ead2c commit cd92cc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vitest.config.mts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ export default defineConfig({
1616
],
1717
test: {
1818
alias: {
19-
immutable: new URL('./src/Immutable.js', import.meta.url).pathname,
19+
immutable: new URL(
20+
process.env.CI
21+
? './dist/Immutable.js' // Point to the built file in CI
22+
: './src/Immutable.js',
23+
import.meta.url
24+
).pathname,
2025
},
2126
include: ['__tests__/**/*.(ts|js)'],
2227
exclude: ['__tests__/ts-utils.ts'],

0 commit comments

Comments
 (0)