mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 06:55:19 +00:00
fix(tests): update setup file path in Vitest configuration for clarity
- Changed the setup file path for global mocks in the Vitest configuration to a more explicit location, improving clarity and organization of test setup.
This commit is contained in:
@@ -8,7 +8,7 @@ export default defineConfig({
|
|||||||
exclude: ["**/node_modules/**", "**/dist/**", "**/.docker/**"],
|
exclude: ["**/node_modules/**", "**/dist/**", "**/.docker/**"],
|
||||||
pool: "forks",
|
pool: "forks",
|
||||||
// Se ejecuta antes de todos los tests y aplica mocks globales (db, postgres, etc.)
|
// Se ejecuta antes de todos los tests y aplica mocks globales (db, postgres, etc.)
|
||||||
setupFiles: ["./setup/mock-db.ts"],
|
setupFiles: ["./__test__/setup/mock-db.ts"],
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
"process.env": {
|
"process.env": {
|
||||||
|
|||||||
Reference in New Issue
Block a user