// vitest.workspace.ts // The `defineWorkspace` helper provides type-safety, but we can export the array // directly to bypass any lingering TypeScript server issues. /** * 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 [ 'vite.config.ts', // Defines the 'unit' test project 'vitest.config.integration.ts', // Defines the 'integration' test project ];