From a2a653888f5f16a444c9581098a21434fbbbba1e Mon Sep 17 00:00:00 2001 From: Enzo DO ROSARIO Date: Sat, 14 Dec 2024 09:26:19 +0100 Subject: [PATCH] chore: add c8 to get test coverage --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ee58bcc..b8015ed7 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "watch": "tsc -w", "dev": "npm run build && concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"npm:watch\" \"npm:dev:start\"", "dev:start": "npm run build && fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js", - "test": "npm run db:seed && glob -c \"tsx --test\" \"./test/**/*.integration.spec.ts\"", + "test": "npm run db:seed && npm run test:run", + "test:coverage": "npm run db:seed && c8 npm run test:run", + "test:run": "glob -c \"tsx --test\" \"./test/**/*.integration.spec.ts\"", "standalone": "npm run build && node --env-file=.env dist/server.js", "lint": "eslint --ignore-pattern=dist", "lint:fix": "npm run lint -- --fix", @@ -60,6 +62,7 @@ }, "devDependencies": { "@types/node": "^22.5.5", + "c8": "^10.1.3", "eslint": "^9.11.0", "fastify-tsconfig": "^2.0.0", "glob": "^11.0.0",