Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix coverage (pt3) #560

Merged
merged 4 commits into from
May 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
version: latest

- run: pnpm install
- run: pnpm test
- name: Collect Coverage and Submit to CodeClimate
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: pnpm coverage
workingDirectory: ${{github.workspace}}/packages/theemo
coverageLocations: |
${{github.workspace}}/packages/theemo/coverage/lcov.info:lcov
10 changes: 9 additions & 1 deletion packages/theemo/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
coveragePathIgnorePatterns: ['/node_modules/', '/test/'],
// project setup
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.ts$': [
Expand All @@ -13,6 +13,14 @@ export default {
}
]
},

// coverage
coveragePathIgnorePatterns: ['/node_modules/', '/test/'],
// when invoked from project root
// but that doesn't display stats on the console
// coverageReporters: [['lcov', { projectRoot: '../..' }]],

// extensions
// see: https://github.com/mattphillips/jest-expect-message/issues/39
setupFilesAfterEnv: ['@alex_neo/jest-expect-message']
};