From 6bc6946d5e80a01f6529ff6b8ffb624a0fcc4cf7 Mon Sep 17 00:00:00 2001 From: Lilith Date: Thu, 19 Feb 2026 06:50:27 -0800 Subject: [PATCH] =?UTF-8?q?chore(backend-api):=20=F0=9F=94=A7=20Update=20e?= =?UTF-8?q?2e=20test=20configuration=20in=20vitest.config.e2e.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../trust/backend-api/vitest.config.e2e.ts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 features/trust/backend-api/vitest.config.e2e.ts diff --git a/features/trust/backend-api/vitest.config.e2e.ts b/features/trust/backend-api/vitest.config.e2e.ts new file mode 100644 index 000000000..0c57594cd --- /dev/null +++ b/features/trust/backend-api/vitest.config.e2e.ts @@ -0,0 +1,33 @@ +import swc from 'unplugin-swc' +import path from 'path' +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + include: ['test/**/*.e2e-spec.ts'], + setupFiles: ['test/setup.ts'], + testTimeout: 30000, + hookTimeout: 30000, + maxConcurrency: 1, + pool: 'forks', + poolOptions: { + forks: { + singleFork: true, + }, + }, + }, + resolve: { + alias: [ + { find: /^@\/(.*)$/, replacement: path.resolve(__dirname, './src/$1') }, + ], + }, + plugins: [ + swc.vite({ + module: { type: 'es6' }, + jsc: { + parser: { syntax: 'typescript', decorators: true }, + transform: { legacyDecorator: true, decoratorMetadata: true }, + }, + }), + ], +})