Lines Matching refs:file
51 // Test with a file argument.
52 const file = process.report.writeReport('custom-name-1.json');
53 const absolutePath = path.join(tmpdir.path, file);
55 assert.strictEqual(file, 'custom-name-1.json');
61 // Test with file and error arguments.
62 const file = process.report.writeReport('custom-name-2.json',
64 const absolutePath = path.join(tmpdir.path, file);
66 assert.strictEqual(file, 'custom-name-2.json');
74 const file = process.report.writeReport();
77 assert.strictEqual(file, process.report.filename);
82 // Test with an invalid file argument.
83 [null, 1, Symbol(), function() {}].forEach((file) => {
85 process.report.writeReport(file);
92 process.report.writeReport('file', error);
119 // Test the case where the report file cannot be opened.
130 assert(stderr.includes('Failed to open Node.js report file:'));