From 265f8f845d7c6513025e9d3e8d32e9d7400c196c Mon Sep 17 00:00:00 2001 From: Nandan Bhat Date: Thu, 19 Dec 2024 01:45:39 +0530 Subject: [PATCH] Added code coverage report config --- .gitignore | 1 + packages/auth0-acul-js/jest.config.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 2b58a20..17334bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ dist/ docs/ +coverage/ .DS_Store \ No newline at end of file diff --git a/packages/auth0-acul-js/jest.config.js b/packages/auth0-acul-js/jest.config.js index 83d0832..bef280d 100644 --- a/packages/auth0-acul-js/jest.config.js +++ b/packages/auth0-acul-js/jest.config.js @@ -14,4 +14,12 @@ export default { ], }, roots: ['/tests/unit'], + collectCoverage: true, + coverageDirectory: '/coverage', + coverageReporters: ['text', 'lcov'], + collectCoverageFrom: [ + '**/*.{ts,tsx}', + '!**/node_modules/**', + '!**/tests/**', + ], };