24 lines
535 B
TypeScript
24 lines
535 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
fs: {
|
|
// Allow serving files from the frontend project root
|
|
allow: ['.'],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// This alias finishes the ability to reference our
|
|
// frontend/ with `@path/to/file`.
|
|
//
|
|
'@': path.resolve(__dirname, './'),
|
|
},
|
|
},
|
|
plugins: [sveltekit()],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
}
|
|
});
|