Skip to main content

method TestContext.prototype.diagnostic

#TestContext.prototype.diagnostic(message: string): void

This function is used to write diagnostics to the output. Any diagnostic information is included at the end of the test's results. This function does not return a value.

test('top level test', (t) => {
  t.diagnostic('A diagnostic message');
});

Parameters #

#message: string

Message to be reported.

Return Type #

void

Did you find what you needed?

Privacy policy