jest-stare: index.js is not loading details. Getting exception testResults is not iterable
I am generating html report programmatically. I am setting error when I am loading index.js. Here is the exception
Uncaught TypeError: testResult.testResults is not iterable
at results.testResults.forEach (view.js:273)
at Array.forEach (<anonymous>)
at Function.create (view.js:270)
at Function.show (view.js:67)
at HTMLDocument.document.addEventListener (view.js:50)
There is where I am seeing issue
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Constants_1 = require("../Constants");
const Test_1 = require("../tests/Test");
class TestSuite {
static create(results) {
const elements = [];
const describeLevels = [];
results.testResults.forEach((testResult) => {
let testStatusClass = Constants_1.Constants.PASSED_TEST;
const testSectionStatus = new Map();
for (const result of testResult.testResults) { ------- Exception
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (10 by maintainers)
Thanks for the workaround. It worked for me