-
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.
- Loading branch information
1 parent
844c2c1
commit c2af50a
Showing
15 changed files
with
5,580 additions
and
3,354 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,24 @@ | ||
name: Test Coverage Comment | ||
on: | ||
pull_request: | ||
types: [opened, reopened,assigned,edited,review_requested] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: | | ||
npx jest --coverage --coverageReporters json-summary | ||
- name: Jest Coverage Comment | ||
uses: MishaKav/jest-coverage-comment@main | ||
with: | ||
junitxml-title: Pulse Test Report | ||
junitxml-path: ./junit.xml | ||
junitxml-title: JUnit |
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,20 @@ | ||
import type { Config } from '@jest/types'; | ||
// Sync object | ||
const config: Config.InitialOptions = { | ||
verbose: true, | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
extensionsToTreatAsEsm: ['.ts'], | ||
transform: { | ||
'^.+\\.ts?$': 'ts-jest', | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: { | ||
allowJs: true, | ||
}, | ||
}, | ||
}, | ||
reporters: ['default', 'jest-junit'], | ||
}; | ||
export default config; |
Oops, something went wrong.