-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(testing): infer correct file output paths for atomized targets (#…
…29766) There is a bug when `outputFile` is specified in `playright.config.ts`, and atomizer is enabled via `ciTargetName`, then the path of the output file is wrong. For example, if you have this reporters entry: ``` reporter: [ [ 'junit', { outputFile: 'dist/report.xml', }, ], ], ``` Then the atomized output file would be something like `dist/report.xml/example-spec-ts`, where `report.xml` is a directory. The correct output file should be `dist/example-spec-ts/report.xml` to avoid conflict with the non-atomized output of `dist/report.xml`. ## Current Behavior If you run `nx e2e proj` then `nx e2e-ci proj` then you can run into an issue where `report.xml` (or whatever the file name is) is a directory in the cache, but it is a file currently -- or vice versa. This happens due to the bug described above. ## Expected Behavior The `outputFile` should never cause a conflict where a path should be a directory but is currently a file, or vice versa. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters