test: add Node test suite and pre-commit hook

This commit is contained in:
David Ibia
2026-01-12 13:50:43 +01:00
parent 090822ef6c
commit b2b0b9b0fa
9 changed files with 277 additions and 9 deletions

View File

@@ -5,12 +5,16 @@
"devDependencies": {
"@opencode-ai/plugin": "*",
"@types/node": "*",
"husky": "^9.1.7",
"typescript": "*"
},
"dependencies": {
"envsitter": "*"
},
"scripts": {
"typecheck": "tsc -p tsconfig.json"
"typecheck": "tsc -p tsconfig.json",
"build:test": "tsc -p tsconfig.test.json",
"test": "npm run build:test && node --test dist-test/test/*.test.js",
"prepare": "husky"
}
}