Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Jul 29, 2024
1 parent b12620b commit f97ebca
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 38 deletions.
26 changes: 12 additions & 14 deletions src/main/resources/generator/client/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "esnext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "react-jsx",
"skipLibCheck": true,
"resolveJsonModule": true,
"esModuleInterop": false,
"lib": ["dom", "DOM.Iterable", "esnext"],
"types": ["vitest/globals"],
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"composite": false,
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "src",
"types": ["vitest/globals"],
"paths": {
"@/*": ["main/webapp/app/*"],
"@assets/*": ["main/webapp/assets/*"]
"@/*": ["src/main/webapp/app/*"],
"@assets/*": ["src/main/webapp/assets/*"]
}
},
"include": ["vite.config.ts", "src"],
"exclude": ["src/test/javascript/integration/**/*spec.ts", "node_modules"]
"include": ["src/main/**/*", "src/test/javascript/spec/**/*.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vitest" />

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

Expand All @@ -21,18 +21,15 @@ export default defineConfig({
},
environment: 'jsdom',
cache: false,
include: ['src/test/javascript/spec/**/*.(spec|test).(ts|tsx)'],
exclude: ['node_modules', 'src/test/javascript/integration/**/*.spec.ts'],
include: ['src/test/javascript/spec/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
coverage: {
all: true,
thresholds: {
perFile: true,
autoUpdate: true,
100: true,
},
include: ['src/main/webapp/app/**/*.ts', 'src/main/webapp/app/**/*.tsx'],
exclude: ['src/main/webapp/app/index.tsx', 'src/main/webapp/app/**/*.d.ts'],
clean: true,
include: ['src/main/webapp/**/*.ts?(x)'],
exclude: ['src/main/webapp/app/index.tsx', ...coverageConfigDefaults.exclude],
provider: 'istanbul',
reportsDirectory: '{{projectBuildDirectory}}/test-results/',
reporter: ['html', 'json-summary', 'text', 'text-summary', 'lcov', 'clover'],
Expand Down
10 changes: 1 addition & 9 deletions src/main/resources/generator/client/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,5 @@
"@/*": ["src/main/webapp/app/*"]
}
},
"include": [
"src/main/webapp/**/*.ts",
"src/main/webapp/**/*.d.ts",
"src/main/webapp/**/*.tsx",
"src/main/webapp/**/*.vue",
"src/test/javascript/spec/**/*.ts",
"src/test/javascript/spec/**/*.vue"
],
"exclude": ["./node_modules"]
"include": ["src/main/**/*", "src/test/javascript/spec/**/*.*"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vitest" />

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

Expand All @@ -21,21 +21,18 @@ export default defineConfig({
},
environment: 'jsdom',
cache: false,
include: ['src/test/javascript/spec/**/*.(spec|test).(ts|tsx)'],
exclude: ['node_modules', 'src/test/javascript/integration/**/*.spec.ts'],
include: ['src/test/javascript/spec/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
coverage: {
thresholds: {
perFile: true,
autoUpdate: true,
100: true,
},
include: ['src/main/webapp/**/*.ts?(x)'],
exclude: [
'src/main/webapp/**/*.component.ts',
'src/main/webapp/app/main.ts',
'.eslintrc.cjs',
'.lintstagedrc.cjs',
'src/test/**/*',
'{{projectBuildDirectory}}/**',
'src/main/webapp/**/*.component.ts',
...coverageConfigDefaults.exclude,
],
provider: 'istanbul',
reportsDirectory: '{{projectBuildDirectory}}/test-results/',
Expand Down

0 comments on commit f97ebca

Please sign in to comment.