diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93da6bc..aa22e30 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,6 +28,8 @@ jobs: with: node-version: "18.x" - run: npm install + # rebuild the project to ensure that the test files are available + - run: npm run build:ci - run: npm test deploy-to-development: diff --git a/vitest.config.ts b/vitest.config.ts index 286005d..c3f340c 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,12 +5,11 @@ import { defineConfig } from "vitest/config" */ export default defineConfig({ test: { - include: ["test/**/*.test.ts"], coverage: { provider: "v8", reporter: ["text", "html"], - include: ["packages/**/*.ts"], - exclude: ["node_modules", "packages/**/dist"], + include: ["packages/**/*.ts", "!packages/**/*.config.ts"], + exclude: ["**/node_modules", "**/dist"], }, }, })