feat: add coverage support for testing and update .gitignore
Some checks failed
Lint / pre-commit Linting (push) Successful in 1m16s
Test / Run Tests (push) Failing after 8m3s

This commit is contained in:
2025-12-27 21:31:19 +00:00
parent 6ff8731e50
commit ae87ee6e35
3 changed files with 263 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "vitest run --globals",
"test": "vitest run --globals --coverage",
"build": "ncc build index.js -o dist --external utf-8-validate --external bufferutil"
},
"dependencies": {
@@ -14,7 +14,8 @@
"screeps-api": "^1.7.2"
},
"devDependencies": {
"vitest": "^4.0.16",
"@vercel/ncc": "^0.38.4"
"@vercel/ncc": "^0.38.4",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
}
}