diff --git a/package.json b/package.json index 297a474..89511e2 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "test": "vitest", "test:ui": "vitest --ui", "test:coverage": "vitest --coverage", - "test:run": "vitest run", + "test:run": "vitest run --project=unit", + "test:storybook": "vitest run --project=storybook", "test:e2e": "cypress open", "test:e2e:headless": "cypress run", "test:all": "npm run test:run && npm run test:e2e:headless", diff --git a/vitest.config.ts b/vitest.config.ts index ab4c59e..bdef9b0 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -35,6 +35,7 @@ export default defineConfig({ projects: [{ extends: true, test: { + name: 'unit', globals: true, environment: 'jsdom', setupFiles: ['./app/test/setup.ts']