All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
generator.client.svelte.vitest.config.ts.mustache Maven / Gradle / Ivy
///
import { defineConfig } from 'vitest/config';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import path from 'path';
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, 'src/main/webapp/app') },
{ find: '@assets', replacement: path.resolve(__dirname, 'src/main/webapp/assets') },
],
},
test: {
reporters: ['verbose', 'vitest-sonar-reporter'],
outputFile: {
'vitest-sonar-reporter': '{{projectBuildDirectory}}/test-results/TESTS-results-sonar.xml',
},
globals: true,
logHeapUsage: true,
poolOptions: {
threads: {
minThreads: 1,
maxThreads: 2,
},
},
environment: 'jsdom',
cache: false,
include: ['src/test/webapp/unit/**/*.(spec|test).(ts|tsx)'],
exclude: ['node_modules'],
coverage: {
thresholds: {
perFile: true,
autoUpdate: true,
100: true,
},
clean: true,
provider: 'istanbul',
reportsDirectory: '{{projectBuildDirectory}}/test-results/',
reporter: ['html', 'json-summary', 'text', 'text-summary', 'lcov', 'clover'],
watermarks: {
statements: [100, 100],
branches: [100, 100],
functions: [100, 100],
lines: [100, 100],
},
},
},
});