Skip to content

Commit

Permalink
wtffff
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojvritx committed Oct 1, 2023
1 parent b8be8e3 commit f17d90c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 216 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install dependencies
run: npm install # Adjust for your specific setup

- name: Run tests
run: npm run test # Adjust for your specific test command

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
16 changes: 8 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
cacheDirectory: '.tmp/jestCache',
preset: 'ts-jest',
testEnvironment: 'node',
cacheDirectory: '.tmp/jestCache',
collectCoverage: true,
coverageDirectory: '<rootDir>/coverage',
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
watchPathIgnorePatterns: ["<rootDir>/test-report.json"],
reporters: ["default"],
testResultsProcessor: "jest-sonar-reporter",
coverageReporters: ["text", "html", "lcov", "clover"],
coveragePathIgnorePatterns: ["/node_modules/", "/test/"]
watchPathIgnorePatterns: ['<rootDir>/test-report.json'],
reporters: ['default'],
testResultsProcessor: 'jest-sonar-reporter',
coverageReporters: ['text', 'html', 'lcov', 'clover'],
coveragePathIgnorePatterns: ['/node_modules/', '/test/']
};
207 changes: 0 additions & 207 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"lint:fix": "eslint . --ext .ts --fix",
"pre-commit": "lint-staged",
"test": "npm run test:unit && npm run test:features",
"test:ci": "jest --ci --forceExit --reporters='default' --reporters='./github-actions-reporter'",
"test:features": "cross-env NODE_ENV=test cucumber-js -p apiApp_backend",
"test:unit": "cross-env NODE_ENV=test jest --detectOpenHandles --forceExit --coverage"
},
Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sonar.projectKey=vinjatovix_ts-api
sonar.organization=vinjatovix
sonar.javascript.lcov.reportPaths=coverage/lcov.info


# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=ts-api
Expand Down

0 comments on commit f17d90c

Please sign in to comment.