Sp-dev-docs: Reporters section for test does not work

Created on 28 Jun 2019  ·  3Comments  ·  Source: SharePoint/sp-dev-docs

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.

Good First Issue 🏆 docs docs-comment spfx-general help wanted

Most helpful comment

Thanks for the information @nanddeepn I'll double check that.
@andrewconnell can you assign this one to me please? I'll double check when I get a minute. Thanks!

All 3 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Thanks for the information @nanddeepn I'll double check that.
@andrewconnell can you assign this one to me please? I'll double check when I get a minute. Thanks!

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings