chore: add vitest to devDependencies with config
Adds vitest as test runner for the MCP repo. Config targets __tests__/**/*.test.ts and excludes vendor/ and node_modules/.
This commit is contained in:
parent
e2c86eb4d9
commit
5dfca22fe6
3 changed files with 1263 additions and 3 deletions
1251
package-lock.json
generated
1251
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -18,7 +18,8 @@
|
||||||
"prisma:generate": "prisma generate",
|
"prisma:generate": "prisma generate",
|
||||||
"postinstall": "prisma generate || true",
|
"postinstall": "prisma generate || true",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"sync-schema": "bash scripts/sync-schema.sh"
|
"sync-schema": "bash scripts/sync-schema.sh",
|
||||||
|
"test": "vitest run"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mcp",
|
"mcp",
|
||||||
|
|
@ -39,6 +40,7 @@
|
||||||
"@types/pg": "^8.11.10",
|
"@types/pg": "^8.11.10",
|
||||||
"prisma": "^7.8.0",
|
"prisma": "^7.8.0",
|
||||||
"tsx": "^4.19.0",
|
"tsx": "^4.19.0",
|
||||||
"typescript": "^5.7.0"
|
"typescript": "^5.7.0",
|
||||||
|
"vitest": "^4.1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
9
vitest.config.ts
Normal file
9
vitest.config.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { defineConfig } from 'vitest/config'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
test: {
|
||||||
|
environment: 'node',
|
||||||
|
include: ['__tests__/**/*.test.ts'],
|
||||||
|
exclude: ['vendor/**', 'node_modules/**'],
|
||||||
|
},
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue