Skip to content

Commit

Permalink
fix: use project root to define allure results folder, fixes cypress …
Browse files Browse the repository at this point in the history
…v10 when config is not in cwd
  • Loading branch information
Oleksandr Shevtsov authored and Oleksandr Shevtsov committed Aug 2, 2022
1 parent d720e6f commit c1ce8d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ function allureWriter(on, config) {

on('task', {
writeAllureResults: ({ results, files, mapping, clearSkipped }) => {
const { resultsDir, writer } = results;
const { resultsDir: relativeResultsDir, writer } = results;

const resultsDir = config.projectRoot
? path.join(config.projectRoot, relativeResultsDir)
: relativeResultsDir;

logger.writer(
'starting writing allure results to "%s"',
resultsDir
Expand Down

0 comments on commit c1ce8d6

Please sign in to comment.