From fb0da784889e6382d101b489de5cc6063c5f5655 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 30 Aug 2024 22:18:22 +0200 Subject: [PATCH] Add test coverage npm script and add "coverage" folder to .gitignore --- .gitignore | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 655e1d8..76c2d6e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,7 @@ generatedAssets node_modules package-lock.json yarn.lock -bun.lockb \ No newline at end of file +bun.lockb + +# Test coverage +coverage \ No newline at end of file diff --git a/package.json b/package.json index 8bd011e..b74e895 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint:fix": "npm run lint -- --fix", "start": "node dist/svr.js", "test": "jest", + "test:coverage": "jest --coverage", "test:middleware": "jest tests/middleware", "test:utils": "jest tests/utils" },