score:8

Accepted answer

You shouldn't need to do anything fancy. Just install jest-junit and then run with the additional reporters flag:

yarn test --reporters=jest-junit

You can also add it to the jest settings of package.json. Probably something like this:

{
  "name": "your-package",
  "jest": {
    "coverageReporters": ["jest-junit"]
  }
}

Related Query

More Query from same tag