Some checks failed
Integration Tests / integration-tests (push) Failing after 32s
Integration Tests / performance-tests (push) Has been skipped
Frontend (React) / test (20) (push) Successful in 1m48s
Docker Build and Push / build-and-push (push) Failing after 3m4s
Frontend (React) / build (push) Successful in 2m33s
Frontend (React) / lighthouse (push) Has been skipped
### Summary of Changes - Removed the check for `clover.xml` in the CI workflow to streamline coverage reporting. - Updated Vitest configuration to exclude `clover` from the coverage reporters and added options for relative paths and cleaning. ### Expected Results - Enhanced clarity and efficiency of the CI process by focusing on relevant coverage reports, improving overall workflow performance.
31 lines
744 B
JavaScript
31 lines
744 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/setupTests.js'],
|
|
globals: true,
|
|
reporter: ['verbose', 'junit'],
|
|
outputFile: {
|
|
junit: './coverage/test-results.xml'
|
|
},
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html', 'lcov'],
|
|
reportsDirectory: './coverage',
|
|
include: ['src/**/*.{js,jsx}'],
|
|
exclude: [
|
|
'src/**/*.test.{js,jsx}',
|
|
'src/**/*.spec.{js,jsx}',
|
|
'src/setupTests.js',
|
|
'src/index.js'
|
|
],
|
|
// Ensure relative paths in coverage reports
|
|
all: true,
|
|
clean: true
|
|
}
|
|
},
|
|
});
|