From 34528bc76050e62e8b4ffb0f5ed5bc54536e5600 Mon Sep 17 00:00:00 2001 From: Torben Sorensen Date: Sat, 22 Nov 2025 23:29:20 -0800 Subject: [PATCH] upload file size limit increased in server.ts --- vitest.config.integration.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vitest.config.integration.ts b/vitest.config.integration.ts index 6af6fb3d..5bfb701d 100644 --- a/vitest.config.integration.ts +++ b/vitest.config.integration.ts @@ -1,4 +1,5 @@ // vitest.config.integration.ts +import path from 'path'; import { defineConfig } from 'vitest/config'; /** @@ -6,6 +7,14 @@ import { defineConfig } from 'vitest/config'; * It runs tests in a Node.js environment, as they need to interact with a live backend server. */ export default defineConfig({ + // Define the project root and aliases, just like in the main vite.config.ts. + // This is crucial for the test runner to correctly resolve module paths. + root: '.', + resolve: { + alias: { + '@': path.resolve(process.cwd(), './src'), + }, + }, test: { name: 'integration', environment: 'node',