Skip to content

Commit

Permalink
fix: fix yarn path (#12769)
Browse files Browse the repository at this point in the history
* fix: fix yarn path

* fix: update yarn path for e2e test and console integration tests
  • Loading branch information
danielleadams committed Jun 9, 2023
1 parent fb24fe7 commit dca98aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const removeYarnPaths = () => {
// Remove yarn's temporary PATH modifications as they affect the yarn version used by jest tests when building the lambda functions
process.env.PATH = process.env.PATH.split(':')
.filter((p) => !p.includes('/tmp/xfs-') && !p.includes('\\Temp\\xfs-'))
.filter((p) => !p.includes('/xfs-') && !p.includes('\\Temp\\xfs-'))
.join(':');
};

Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-e2e-tests/src/setup-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { toBeIAMRoleWithArn, toHaveValidPolicyConditionMatchingIdpId, toBeAS3Buc
const removeYarnPaths = () => {
// Remove yarn's temporary PATH modifications as they affect the yarn version used by jest tests when building the lambda functions
process.env.PATH = process.env.PATH.split(':')
.filter((p) => !p.includes('/tmp/xfs-') && !p.includes('\\Temp\\xfs-'))
.filter((p) => !p.includes('/xfs-') && !p.includes('\\Temp\\xfs-'))
.join(':');
};

Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-migration-tests/src/setup-tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const removeYarnPaths = () => {
// Remove yarn's temporary PATH modifications as they affect the yarn version used by jest tests when building the lambda functions
process.env.PATH = process.env.PATH.split(':')
.filter((p) => !p.includes('/tmp/xfs-') && !p.includes('\\Temp\\xfs-'))
.filter((p) => !p.includes('/xfs-') && !p.includes('\\Temp\\xfs-'))
.join(':');
};

Expand Down

0 comments on commit dca98aa

Please sign in to comment.