diff --git a/.github/workflows/sonarcloud-scan.yml b/.github/workflows/sonarcloud-scan.yml index dbd4894..779479f 100644 --- a/.github/workflows/sonarcloud-scan.yml +++ b/.github/workflows/sonarcloud-scan.yml @@ -18,7 +18,7 @@ jobs: - name: Install dependencies run: yarn - name: Test and coverage - run: yarn test --coverage + run: yarn test -- --coverage - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@master env: diff --git a/jest.config.js b/jest.config.js index 0cca6cd..4fda83f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,7 +3,7 @@ module.exports = { '\\.js$': 'babel-jest' }, collectCoverage: true, - collectCoverageFrom: ['./src/db/sqlite3.js'], + collectCoverageFrom: ['src/db/sqlite3.js'], coverageDirectory: 'coverage', coverageReporters: ['text', 'lcov'] } diff --git a/sonar-project.properties b/sonar-project.properties index 3a7724b..f6f0aa0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,5 @@ sonar.organization=sunquakes sonar.projectKey=sunquakes_electron-kits -sonar.sources=src/db/sqlite3.js sonar.exclusions=src/lang/**.js sonar.javascript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file