Limit Vitest to source test tree

This commit is contained in:
Meta Vens 2026-04-26 12:25:53 +01:00
commit 702ac33f34
2 changed files with 9 additions and 1 deletions

View file

@ -10,7 +10,7 @@
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",
"dev": "tsx watch src/index.ts", "dev": "tsx watch src/index.ts",
"start": "node dist/index.js", "start": "node dist/index.js",
"test": "vitest run", "test": "vitest run --config vitest.config.ts",
"typecheck": "tsc -p tsconfig.json --noEmit" "typecheck": "tsc -p tsconfig.json --noEmit"
}, },
"dependencies": { "dependencies": {

8
vitest.config.ts Normal file
View file

@ -0,0 +1,8 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["tests/**/*.test.ts"],
exclude: ["dist/**", "node_modules/**"],
},
});