Skip to content

Reporters section for test does not work #4217

@nanddeepn

Description

@nanddeepn

Under the paragraph, "Finally you need to modify the package.json to configure the reporter", the configuration ""jest-junit" does not work.

Suggestion# 1:
The below code part

"jest-junit": {
    "output": "temp/test/junit/junit.xml",
    "usePathForSuiteName": "true"
}

should be changed to

"jest": {
  "reporters": [
    [
      "jest-junit", {
        "suiteName": "SharePoint SPFx Testing",
        "outputDirectory": "./reports/",
        "outputName": "./junit.xml"
      }
    ]
  ]
}

Suggestion# 2:
Importing test results should be changed as per "Publish Test Results" section here - an article by @estruyf


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Good First Issue 🏆Great suggestion for someone from the community to jump in as their first issue to address / fix!area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devarea:spfxCategory: SharePoint Framework (not extensions related)help wantedLooking for someone to help with this issue (documentation fix, etc).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions