Docs (4.0.0)
Tests

formatTestResults

Returns a string-formatted version of the provided test results object, in English.

formatTestResults(results: TestResultsData): string

Notes

  • The test results object can be obtained using getTestResults().
  • Formatted results only include skipped, todo, and failed tests. It’s advisable to log the full JSON data to a file as well.