Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
chore(coverage): Ignore SourceCodeEditor component coverage
Browse files Browse the repository at this point in the history
In its current form, we can't test the SourceCodeEditor through unit test,
in that sense, we leverage e2e tests to ensure that it's working.

This commit ignore its path to avoid affecting the coverage report.
  • Loading branch information
lordrip committed Jul 31, 2023
1 parent b527903 commit 8aff31b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ ignore:
- "**/index.ts"
- "**/store/data/**"
- "**/stubs/**"
# Ignore SourceCode editor coverage because it's not possible to test it through Jest (it's a monaco editor)
- "packages/kaoto-ui/src/components/SourceCode/*.{ts,tsx}"
1 change: 1 addition & 0 deletions packages/kaoto-ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
'!<rootDir>/src/**/index.ts',
'!<rootDir>/src/store/data/**',
'!<rootDir>/src/stubs/**',
'!<rootDir>/src/components/SourceCode/**',
],

testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
Expand Down

0 comments on commit 8aff31b

Please sign in to comment.