Skip to content

Commit

Permalink
Merge pull request #154 from arabull/rootDir
Browse files Browse the repository at this point in the history
Replace <rootDir> prior to path.join()
  • Loading branch information
palmerj3 committed Oct 4, 2021
2 parents 46bc2c9 + 1b5af37 commit 017af76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/getOutputPath.js
Expand Up @@ -7,7 +7,9 @@ module.exports = (options, jestRootDir) => {
if (!output) {
// Set output to use new outputDirectory and fallback on original output
const outputName = (options.uniqueOutputName === 'true') ? getOptions.getUniqueOutputName() : options.outputName
output = path.join(options.outputDirectory, outputName);
output = getOptions.replaceRootDirInOutput(jestRootDir, options.outputDirectory);
const finalOutput = path.join(output, outputName);
return finalOutput;
}

const finalOutput = getOptions.replaceRootDirInOutput(jestRootDir, output);
Expand Down

0 comments on commit 017af76

Please sign in to comment.