diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877dc12..8b5730a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,9 @@ jobs: -Dsonar.projectKey=louisgrasset_touitomamout -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info -Dsonar.sources=src - -Dsonar.exclusions=src/**/__tests__/** -Dsonar.tests=src - -Dsonar.test.inclusions=src/**/__tests__/** + -Dsonar.exclusions=**/__tests__/**/*.*/ + -Dsonar.test.inclusions=**/*.spec.ts commitlint: name: "Commitlint Validation" diff --git a/meta/testing/jest.config.cjs b/meta/testing/jest.config.cjs index b2dc4a7..45c354a 100644 --- a/meta/testing/jest.config.cjs +++ b/meta/testing/jest.config.cjs @@ -1,5 +1,5 @@ module.exports = { - collectCoverageFrom: ['src/**/*.ts'], + collectCoverageFrom: ["src/**/*.ts", "!**/__tests__/**/*"], coveragePathIgnorePatterns : [ "/src/constants.ts", "/src/index.ts"