From 5678856bd0a6cbc320dd6e99ae10d606212e20b8 Mon Sep 17 00:00:00 2001 From: Lilith Date: Thu, 29 Jan 2026 08:20:57 -0800 Subject: [PATCH] =?UTF-8?q?chore(api):=20=F0=9F=94=A7=20Update=20e2e=20tes?= =?UTF-8?q?t=20configuration=20in=20vitest.e2e.config.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- services/api/vitest.e2e.config.ts | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 services/api/vitest.e2e.config.ts diff --git a/services/api/vitest.e2e.config.ts b/services/api/vitest.e2e.config.ts new file mode 100644 index 0000000..d8caa30 --- /dev/null +++ b/services/api/vitest.e2e.config.ts @@ -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'), + }, + }, +});