Skip to content

Commit

Permalink
chore: SB-792 SonarCloud webapp config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Mar 2, 2023
1 parent 8bf5498 commit 9271ab2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
2 changes: 1 addition & 1 deletion bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipelines:
- *initializeStep
- *installWebappDeps
- node_modules/.bin/nx run webapp:lint
- node_modules/.bin/nx run webapp:test --watchAll=false --maxWorkers=20%
- node_modules/.bin/nx run webapp:test --watchAll=false --maxWorkers=20% --coverage
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
Expand Down
3 changes: 2 additions & 1 deletion packages/webapp/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export default {
'^!!raw-loader!.*': 'jest-raw-loader',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/webapp',
coverageReporters: ['lcov'],
coveragePathIgnorePatterns: ['/node_modules/', '.*.svg'],
setupFilesAfterEnv: ['./src/setupTests.ts'],
globals: {
'ts-jest': {
Expand Down
2 changes: 2 additions & 0 deletions packages/webapp/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sonar.organization=apptension
sonar.projectKey=saas_boilerplate_webapp
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.test.inclusions=**/*.spec.*
sonar.exclusions=**/__generated__/*
49 changes: 18 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9271ab2

Please sign in to comment.