0
0
Fork 0
salix-front-mindshore-fork2/vitest.config.js

33 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-12-22 12:46:43 +00:00
import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
import jsconfigPaths from 'vite-jsconfig-paths';
2023-01-03 13:17:22 +00:00
import vueI18n from '@intlify/vite-plugin-vue-i18n';
import path from 'path';
2022-12-22 12:46:43 +00:00
// https://vitejs.dev/config/
export default defineConfig({
test: {
environment: 'happy-dom',
setupFiles: 'test/vitest/setup-file.js',
include: [
// Matches vitest tests in any subfolder of 'src' or into 'test/vitest/__tests__'
// Matches all files with extension 'js', 'jsx', 'ts' and 'tsx'
'src/**/*.vitest.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'test/vitest/__tests__/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
},
plugins: [
vue({
template: { transformAssetUrls },
}),
quasar({
sassVariables: 'src/quasar-variables.scss',
}),
2023-01-03 13:17:22 +00:00
vueI18n({
include: path.resolve(__dirname, 'src/i18n/**'),
}),
2022-12-22 12:46:43 +00:00
jsconfigPaths(),
],
});