summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-01 01:03:40 +0200
committerRory& <root@rory.gay>2025-06-01 01:03:40 +0200
commit99220d73469210f94493ef92a9edc64ab50eb0d9 (patch)
tree765781a300db5c1e1a15afaa8bd09f48712a5313 /package.json
parentInit test frontend (diff)
downloadnodejs-final-assignment-99220d73469210f94493ef92a9edc64ab50eb0d9.tar.xz
Add some tests
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/package.json b/package.json

index 1d4c039..437858d 100644 --- a/package.json +++ b/package.json
@@ -5,7 +5,10 @@ "main": "src/api/start.js", "type": "module", "scripts": { - "prepare": "husky install" + "prepare": "husky install", + "test": "node --test", + "test:watch": "node --test --watch", + "coverage": "node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info" }, "repository": { "type": "git", @@ -16,11 +19,14 @@ "imports": { "#api/*": "./src/api/*", "#db/*": "./src/db/*", - "#util/*": "./src/util/*" + "#util/*": "./src/util/*", + "#tests/*": "./src/tests/*" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.27.0", + "bcrypt": "^6.0.0", + "dotenv": "^16.5.0", "eslint": "^9.27.0", "globals": "^16.2.0", "husky": "^9.1.7",