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

17
package-lock.json generated
View File

@@ -11,6 +11,7 @@
"devDependencies": {
"@opencode-ai/plugin": "*",
"@types/node": "*",
"husky": "^9.1.7",
"typescript": "*"
}
},
@@ -51,6 +52,22 @@
"envsitter": "dist/cli.js"
}
},
"node_modules/husky": {
"version": "9.1.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz",
"integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
"dev": true,
"license": "MIT",
"bin": {
"husky": "bin.js"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",