Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created July 31, 2018 12:04
Show Gist options
  • Save ThaddeusJiang/b62eac0dd431d4c402ab5904aff322e3 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/b62eac0dd431d4c402ab5904aff322e3 to your computer and use it in GitHub Desktop.
jest result for jenkinsci

使用 jest-junit

yarn add --dev jest-junit

配置 jest

{
  "reporters": [ "default", "jest-junit" ],
  "testResultsProcessor": "jest-junit"
}

Jenkinsfile

jest --ci --testResultsProcessor="jest-junit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment