From 702ac33f34060c3366823100a5d71a83337f41e0 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 26 Apr 2026 12:25:53 +0100 Subject: [PATCH] Limit Vitest to source test tree --- package.json | 2 +- vitest.config.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vitest.config.ts diff --git a/package.json b/package.json index bf5cc57..cd4e73c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "tsc -p tsconfig.json", "dev": "tsx watch src/index.ts", "start": "node dist/index.js", - "test": "vitest run", + "test": "vitest run --config vitest.config.ts", "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..d7f8e22 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + include: ["tests/**/*.test.ts"], + exclude: ["dist/**", "node_modules/**"], + }, +});