Add test suite, cover existing functions

This commit is contained in:
2026-03-12 17:28:43 +04:00
parent 53b2c9b4f8
commit c5c999ac79
5 changed files with 1239 additions and 2 deletions

View File

@@ -20,7 +20,9 @@
"scripts": {
"build": "rimraf dist && tsc",
"doc": "typedoc",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "vitest run",
"test:watch": "vitest",
"preversion": "pnpm test",
"version": "pnpm run build && pnpm run doc && git add dist docs README.md"
},
"author": "Râu Cao <raucao@kosmos.org>",
@@ -31,7 +33,8 @@
"rimraf": "^6.1.2",
"typedoc": "^0.28.16",
"typedoc-plugin-markdown": "^4.9.0",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"dependencies": {
"latlon-geohash": "^2.0.0",