fix .last-run.json location
This commit is contained in:
parent
4b3d75467a
commit
89458dbc67
|
|
@ -80,7 +80,8 @@ export async function createReporters(config: FullConfigInternal, mode: 'list' |
|
||||||
|
|
||||||
if (!isTestServer && (mode === 'test' || mode === 'merge')) {
|
if (!isTestServer && (mode === 'test' || mode === 'merge')) {
|
||||||
// If we are not in the test server, always add a last-run reporter.
|
// If we are not in the test server, always add a last-run reporter.
|
||||||
reporters.push(new LastRunReporter(runOptions));
|
const lastRunOutputFile = config.projects.length >= 0 ? path.join(config.projects[0].project.outputDir, '.last-run.json') : undefined;
|
||||||
|
reporters.push(new LastRunReporter({ ...runOptions, outputFile: lastRunOutputFile }));
|
||||||
}
|
}
|
||||||
|
|
||||||
return reporters;
|
return reporters;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue