Skip to content

Commit

Permalink
Fix tests in CI by moving --coverage argument into root package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed Aug 26, 2024
1 parent f3f1b6c commit ebcd8a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
cache-dependency-path: "yarn.lock"
- run: yarn install --immutable --inline-builds

- run: yarn test -- --coverage
- run: yarn test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

- run: yarn prisma:migrateProd

- run: yarn test:integration -- --coverage
- run: yarn test:integration

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"lint": "yarn workspaces foreach -Atp --exclude badger-root-workspace run lint",
"prettify": "yarn workspaces foreach -Atp --exclude badger-root-workspace run prettify",
"test": "yarn workspaces foreach -Atp --exclude badger-root-workspace run test",
"test:integration": "yarn workspaces foreach -At --exclude badger-root-workspace run test:integration",
"test": "yarn workspaces foreach -Atp --exclude badger-root-workspace run test --coverage",
"test:integration": "yarn workspaces foreach -At --exclude badger-root-workspace run test:integration --coverage",
"typecheck": "yarn workspaces foreach -Atp --include 'badger-{desktop,jobrunner,server}' run tsc --noEmit",
"prepare": "husky"
},
Expand Down
1 change: 1 addition & 0 deletions utility/vmix/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module.exports = {
transform: {
"^.+.tsx?$": ["ts-jest", {}],
},
coverageProvider: "v8",
};

0 comments on commit ebcd8a7

Please sign in to comment.