Skip to content

Commit

Permalink
chore(vitest): use vite-tsconfig-paths to simplify vitest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Jul 28, 2024
1 parent 269d215 commit ef68b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import path from 'path';

export default defineConfig({
plugins: [react(), tsconfigPaths()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src/main/webapp/app') }],
},
test: {
reporters: ['verbose', 'vitest-sonar-reporter'],
outputFile: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/// <reference types="vitest" />

import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import vue from '@vitejs/plugin-vue';
import path from 'path';

export default defineConfig({
plugins: [vue()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src/main/webapp/app') }],
},
plugins: [vue(), tsconfigPaths()],
test: {
reporters: ['verbose', 'vitest-sonar-reporter'],
outputFile: {
Expand Down

0 comments on commit ef68b6d

Please sign in to comment.