When I use assert.strictEqual in a test case and pass in an object with a circular reference, then the test case is not logged by the reporters (console, html) as a failing test case. It is listed as failing in the overview, though (1/1 tests failed).
This test case demonstrates the problem:
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
define(['module'], function(module) {
registerSuite(module.id, {
tests: {
'Test does not appear in reporter'() {
const a = { b: null };
const b = { a: a };
a.b = b;
assert.strictEqual(a, null);
}
}
});
});
Environment
Intern version: 4.8.3
Chrome: v83