2023-06-29 10:52:15 +02:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
|
import { defineConfig } from 'vitest/config';
|
2023-07-14 07:44:11 +02:00
|
|
|
// import path from 'path'
|
2023-06-29 10:52:15 +02:00
|
|
|
|
|
|
|
export default defineConfig({
|
2023-07-03 16:30:13 +02:00
|
|
|
server: {
|
|
|
|
fs: {
|
|
|
|
// Allow serving files from the frontend project root
|
2023-07-14 07:44:11 +02:00
|
|
|
// allow: ['.'],
|
2023-07-03 16:30:13 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
// This alias finishes the ability to reference our
|
|
|
|
// frontend/ with `@path/to/file`.
|
|
|
|
//
|
2023-07-14 07:44:11 +02:00
|
|
|
// '@': path.resolve(__dirname, './'),
|
2023-07-03 16:30:13 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [sveltekit()],
|
|
|
|
test: {
|
|
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
|
|
}
|
2023-06-29 10:52:15 +02:00
|
|
|
});
|