forked from verdnatura/salix-front
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
|
|
import jsconfigPaths from 'vite-jsconfig-paths';
|
|
import vueI18n from '@intlify/vite-plugin-vue-i18n';
|
|
import path from 'path';
|
|
|
|
// 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',
|
|
}),
|
|
vueI18n({
|
|
include: path.resolve(__dirname, 'src/i18n/**'),
|
|
}),
|
|
jsconfigPaths(),
|
|
],
|
|
});
|