in x-test.js [984:997]
static childOk(context, child, options) {
switch (child.type) {
case 'test':
return context.state.tests[child.testId].children.every(candidate => XTestRoot.childOk(context, candidate, options));
case 'describe':
return context.state.describes[child.describeId].children.every(candidate => XTestRoot.childOk(context, candidate, options));
case 'it':
return context.state.its[child.itId].ok || options?.todoOk && context.state.its[child.itId].directive === 'TODO';
case 'coverage':
return context.state.coverages[child.coverageId].ok;
default:
throw new Error(`Unexpected type "${child.type}".`);
}
}