method
test.default.SuiteContext.log
log(
message: string,
data?: unknown
): void;
Write a log message to the output. The resulting 'test:log' event is emitted immediately, in the order that the tests execute.
test.describe('my suite', (suite) => {
suite.log('Suite log message');
});@param message
Message to be reported.
@param data
Optional structured payload attached to the message. The test runner passes it through untouched.