-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: update test code * chore(action): update workflow code * chore: update .gitignore to exclude jest coverage and junit.xml
- Loading branch information
1 parent
918bea9
commit 2552fba
Showing
13 changed files
with
5,617 additions
and
3,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test Coverage Comment | ||
on: | ||
pull_request: | ||
types: [opened, reopened,assigned,edited,review_requested,synchronize] | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: | | ||
npx jest --detectOpenHandles --forceExit --coverage --coverageReporters json-summary | ||
- name: Jest Coverage Comment | ||
id: coverageComment | ||
uses: MishaKav/jest-coverage-comment@main | ||
with: | ||
junitxml-title: Pulse Test Report | ||
junitxml-path: ./junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,4 +130,6 @@ dist | |
coverage | ||
|
||
|
||
_README.md | ||
# jest | ||
coverage | ||
junit.xml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { Config } from '@jest/types'; | ||
// Sync object | ||
const config: Config.InitialOptions = { | ||
preset: 'ts-jest', | ||
reporters: ['default', 'jest-junit'], | ||
}; | ||
export default config; |
Oops, something went wrong.
2552fba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulse Test Report