in tasks/Node/src/modules/task-utils/testutil.ts [31:47]
export function writeTestLog(message: any): void {
try {
const parentFileName = __filename;
if (!parentFileName) {
throw 'TestUtil: Expectation is that this function is called from a parent module.';
}
tl.debug(`TestUtil: Writing test log for module '${path.relative(process.cwd(), parentFileName)}'.`)
const testLogFilePath = path.join(path.dirname(parentFileName), 'testlog.json');
tl.debug(`TestUtil: Writing test log to file '${path.relative(process.cwd(), testLogFilePath)}'.`)
fs.writeFileSync(testLogFilePath, JSON.stringify(message, null, 2), 'utf8');
}
catch (error) {
tl.error(JSON.stringify(error, null, 2));
}
}