20 lines
522 B
TypeScript
20 lines
522 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsx: 'transform',
|
|
jsxFactory: 'React.createElement',
|
|
jsxFragment: 'React.Fragment'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'react/jsx-runtime': new URL('./tests/mocks/react.ts', import.meta.url).pathname,
|
|
'react/jsx-dev-runtime': new URL('./tests/mocks/react.ts', import.meta.url).pathname,
|
|
react: new URL('./tests/mocks/react.ts', import.meta.url).pathname
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'node'
|
|
}
|
|
});
|