All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generator.client.vue.vitest.config.ts.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
/// 

import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig, configDefaults } from 'vitest/config';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  plugins: [vue(), tsconfigPaths()],
  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/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
    coverage: {
      include: ['src/main/webapp/**/*.ts?(x)'],
      exclude: [
        ...configDefaults.coverage.exclude as string[],
        'src/main/webapp/app/main.ts',
        'src/main/webapp/app/injections.ts',
        'src/main/webapp/app/router.ts',
        'src/main/webapp/**/*.component.ts',
      ],
      provider: 'istanbul',
      reportsDirectory: '{{projectBuildDirectory}}/test-results/',
      reporter: ['html', 'json-summary', 'text', 'text-summary', 'lcov', 'clover'],
      thresholds: {
        perFile: true,
        autoUpdate: true,
        100: true,
      },
      watermarks: {
        statements: [100, 100],
        branches: [100, 100],
        functions: [100, 100],
        lines: [100, 100],
      },
    },
  },
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy