Lines Matching refs:process
13 process.report.directory = tmpdir.path;
16 const reports = helper.findReports(process.pid, tmpdir.path);
25 process.report.writeReport();
31 process.report.writeReport(new Error('test error'));
39 process.report.writeReport(error);
46 process.report.writeReport(error);
52 const file = process.report.writeReport('custom-name-1.json');
54 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0);
62 const file = process.report.writeReport('custom-name-2.json',
65 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0);
73 process.report.filename = 'custom-name-3.json';
74 const file = process.report.writeReport();
75 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0);
76 const filename = path.join(process.report.directory, 'custom-name-3.json');
77 assert.strictEqual(file, process.report.filename);
85 process.report.writeReport(file);
92 process.report.writeReport('file', error);
98 const args = ['-e', 'process.report.writeReport("stdout")'];
99 const child = spawnSync(process.execPath, args, { cwd: tmpdir.path });
108 const args = ['-e', 'process.report.writeReport("stderr")'];
109 const child = spawnSync(process.execPath, args, { cwd: tmpdir.path });
123 'process.report.writeReport()'];
124 const child = spawnSync(process.execPath, args, { cwd: tmpdir.path });