debian-image-builder-frontend/vitest.config.ts
Michal Gold 4801a09a85 codecov: enable codecov in our repo
this commit add the configuration for codecov,
to be able to see the coverage of vitest in codecov website.
2024-09-03 09:56:45 +02:00

34 lines
631 B
TypeScript

import react from '@vitejs/plugin-react';
const config = {
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
coverage: {
provider: 'v8',
},
server: {
deps: {
inline: ['vitest-canvas-mock', '@patternfly'],
},
},
testTimeout: 10000,
fileParallelism: false,
},
reporters: ['default', 'junit'],
outputFile: {
junit: './coverage/junit.xml',
},
resolve: {
mainFields: ['module'],
},
esbuild: {
loader: 'tsx',
include: /src\/.*\.[tj]sx?$/,
exclude: [],
},
};
export default config;