Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace <rootDir> prior to path.join() #154

Merged
merged 24 commits into from Oct 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5a96643
Replace <rootDir> prior to path.join().
Dec 10, 2020
79682c6
Bump y18n from 4.0.0 to 4.0.1
dependabot[bot] Mar 31, 2021
12da1a2
Merge pull request #161 from jest-community/dependabot/npm_and_yarn/y…
palmerj3 Mar 31, 2021
3c68d50
Add outputFile config and tests
May 25, 2021
69e802c
Merge pull request #168 from daivinhtran/add-outputfile-config
palmerj3 May 25, 2021
712907b
v12.1.0
palmerj3 May 25, 2021
e02ac65
Merge pull request #169 from palmerj3/bumpVersion
palmerj3 May 25, 2021
c6bc051
fix: Upgrade uuid package
scttcper Jun 9, 2021
181e14e
Merge pull request #171 from scttcper/uuid-upgrade
palmerj3 Jun 9, 2021
ce8dde5
v12.2.0
palmerj3 Jun 9, 2021
6751a86
Merge pull request #172 from palmerj3/v12.2.0
palmerj3 Jun 9, 2021
e189f2d
Fix displayName usage in templates
D4N14L Sep 9, 2021
8e5f72b
Merge pull request #179 from D4N14L/fixDisplayName
palmerj3 Sep 10, 2021
7568d08
v12.3.0
palmerj3 Sep 21, 2021
46ab4a4
Merge pull request #182 from palmerj3/twelveThreeZero
palmerj3 Sep 21, 2021
77e5b64
chore: migrate to GH Actions (#185)
SimenB Sep 29, 2021
475c84f
chore: refresh lockfile (#184)
SimenB Sep 29, 2021
c054549
chore: run tests on Windows (#187)
SimenB Sep 29, 2021
506df22
chore: use Jest 27 (#186)
SimenB Sep 29, 2021
8f43cd0
Fix CG by updating strip-ansi from 5.2.0 to 6.0.1
Sep 30, 2021
2b6c131
Update package.json
SimenB Sep 30, 2021
46bc2c9
Merge pull request #188 from KeYu-dev/fixcg-ansi-regex
palmerj3 Sep 30, 2021
c5ca7c8
Replace <rootDir> prior to path.join().
Dec 10, 2020
1b5af37
Merge branch 'rootDir' of https://github.com/arabull/jest-junit into …
Sep 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -25,9 +25,9 @@ const processor = (report, reporterOptions = {}, jestRootDir = null) => {

// Set output to use new outputDirectory and fallback on original output
const outputName = (options.uniqueOutputName === 'true') ? getOptions.getUniqueOutputName() : options.outputName
const output = path.join(options.outputDirectory, outputName);
const output = getOptions.replaceRootDirInOutput(jestRootDir, options.outputDirectory);

const finalOutput = getOptions.replaceRootDirInOutput(jestRootDir, output);
const finalOutput = path.join(output, outputName);

// Ensure output path exists
mkdirp.sync(path.dirname(finalOutput));
Expand Down