Initial version of smartbooking generated by generator-jhipster@9.0.0-beta.0
This commit is contained in:
32
vitest.config.ts
Normal file
32
vitest.config.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import { defineConfig, mergeConfig } from 'vitest/config';
|
||||
|
||||
import viteConfig from './vite.config.ts';
|
||||
|
||||
export default mergeConfig(
|
||||
viteConfig,
|
||||
defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
vue: 'vue',
|
||||
},
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'happy-dom', // happy-dom provides a better performance but doesn't have a default url.
|
||||
setupFiles: [fileURLToPath(new URL('./src/main/webapp/app/test-setup.ts', import.meta.url))],
|
||||
reporters: ['default', 'vitest-sonar-reporter'],
|
||||
outputFile: {
|
||||
'vitest-sonar-reporter': fileURLToPath(new URL('./build/test-results/TESTS-results-vitest.xml', import.meta.url)),
|
||||
},
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
statements: 85,
|
||||
branches: 75,
|
||||
lines: 85,
|
||||
reportsDirectory: fileURLToPath(new URL('./build/vite-coverage', import.meta.url)),
|
||||
},
|
||||
},
|
||||
}),
|
||||
);
|
||||
Reference in New Issue
Block a user