You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
772 B
31 lines
772 B
import { defineConfig } from 'vitest/config';
|
|
import { resolve } from 'path';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [svelte(),tailwindcss()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: [
|
|
'src/**/*.ts',
|
|
'src/libs/**/*.ts',
|
|
'src/libs/i18n/*.ts'
|
|
],
|
|
exclude: [
|
|
'src/**/*.test.ts',
|
|
'src/**/*.d.ts']
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src')
|
|
}
|
|
}
|
|
});
|