The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import path from "node:path"; |
| 2 | import { defineConfig } from "vitest/config"; |
| 3 | |
| 4 | const packageRoot = path.resolve(import.meta.dirname, ".."); |
| 5 | |
| 6 | const project = (hooks: "stack" | "list") => ({ |
| 7 | extends: true as const, |
| 8 | test: { |
| 9 | name: `hooks-${hooks}`, |
| 10 | sequence: { hooks }, |
| 11 | }, |
| 12 | }); |
| 13 | |
| 14 | export default defineConfig({ |
| 15 | test: { |
| 16 | root: packageRoot, |
| 17 | include: ["vitest/**/*.test.ts"], |
| 18 | projects: [project("stack"), project("list")], |
| 19 | }, |
| 20 | }); |