aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-04-27 14:29:07 -0500
committerGitHub <noreply@github.com>2021-04-27 14:29:07 -0500
commit4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881 (patch)
treef5ffb4d7a23d7c6edee01fb605ff81348feea40d /package.json
parent562cd341f75bfb2701cc844cf30f1191e4170ca7 (diff)
downloadskyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.tar.gz
skyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.tar.bz2
skyblock-api-4ce80d0af8f53e93aa3a936b1ad4c5b6c065c881.zip
Add unit tests (#12)
* start adding unit tests * add more to test/data/mojang.json * fix sending http requests in tests when it shouldn't * add a few more tests * try to add a github action to run tests * Update test.yml
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 7 insertions, 3 deletions
diff --git a/package.json b/package.json
index bc4b44d..42272c5 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "Wrapper for the Hypixel SkyBlock API",
"main": "index.ts",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
+ "test": "mocha",
"compile": "tsc",
"start": "npm i --only=prod; node build/index.js"
},
@@ -36,9 +36,13 @@
"devDependencies": {
"@types/express": "^4.17.11",
"@types/express-rate-limit": "^5.1.1",
- "@types/node": "^14.14.41",
+ "@types/mocha": "^8.2.2",
"@types/mongodb": "^3.6.12",
+ "@types/node": "^14.14.41",
"@types/node-fetch": "^2.5.10",
- "dotenv": "^8.2.0"
+ "dotenv": "^8.2.0",
+ "mocha": "^8.3.2",
+ "ts-node": "^9.1.1",
+ "typescript": "^4.2.4"
}
}