chore(api): 🔧 Update e2e test configuration in vitest.e2e.config.ts

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-01-29 08:20:57 -08:00
parent 6f907450a3
commit 5678856bd0

View file

@ -0,0 +1,41 @@
import swc from 'unplugin-swc';
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
swc.vite({
module: { type: 'es6' },
jsc: {
parser: {
syntax: 'typescript',
decorators: true,
},
transform: {
legacyDecorator: true,
decoratorMetadata: true,
},
},
}),
],
test: {
globals: true,
environment: 'node',
testTimeout: 60000,
pool: 'forks',
poolOptions: {
forks: {
singleFork: true,
},
},
include: ['test/**/*.e2e-spec.ts'],
exclude: ['node_modules', 'dist'],
setupFiles: ['./test/vitest-e2e-setup.ts'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@test': path.resolve(__dirname, './test'),
},
},
});