upload file size limit increased in server.ts
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m9s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m9s
This commit is contained in:
@@ -1,21 +1,15 @@
|
||||
// vitest.config.integration.ts
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { defineConfig, mergeConfig } from 'vitest/config';
|
||||
import viteConfig from './vite.config';
|
||||
|
||||
/**
|
||||
* This configuration is specifically for integration tests.
|
||||
* It runs tests in a Node.js environment, as they need to interact with a live backend server.
|
||||
* It MERGES with the main vite.config.ts to inherit plugins and aliases,
|
||||
* then overrides the test-specific settings for a Node.js environment.
|
||||
*/
|
||||
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'),
|
||||
},
|
||||
},
|
||||
export default mergeConfig(viteConfig, defineConfig({
|
||||
test: {
|
||||
// Override settings from the main config for this specific test project.
|
||||
name: 'integration',
|
||||
environment: 'node',
|
||||
// The path must be specific. By default, Vitest doesn't look in `src`
|
||||
@@ -34,5 +28,5 @@ export default defineConfig({
|
||||
reportsDirectory: '.coverage/integration',
|
||||
clean: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}));
|
||||
Reference in New Issue
Block a user