Files
flyer-crawler.projectium.com/vitest.workspace.ts
2025-12-23 17:57:32 -08:00

18 lines
633 B
TypeScript

// vitest.workspace.ts
/**
* Defines the workspace for Vitest, separating unit and integration test projects.
* This is the primary entry point for the `vitest` command.
* - Unit tests are defined in `vite.config.ts` and run in a 'jsdom' environment.
* - Integration tests are defined in `vitest.config.integration.ts` and run in a 'node' environment.
*/
export default [
// DEBUGGING LOG
((): string => {
console.error('\n[DEBUG] Loading vitest.workspace.ts');
return '';
})(),
'vite.config.ts', // Defines the 'unit' test project
'vitest.config.integration.ts', // Defines the 'integration' test project
];