chore: Add a unit testing framework (#49)
Some checks are pending
Lint / pre-commit Linting (push) Waiting to run
Test / Run Tests (push) Successful in 1m12s

Add vitest as a unit testing framework

Reviewed-on: #49
This commit was merged in pull request #49.
This commit is contained in:
2026-01-04 07:02:20 +01:00
parent a14206d32c
commit 3ff19001a7
11 changed files with 3537 additions and 355 deletions

View File

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