From 99220d73469210f94493ef92a9edc64ab50eb0d9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 1 Jun 2025 01:03:40 +0200 Subject: Add some tests --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'package.json') 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", -- cgit 1.5.1