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

chore: make toolkit tests not break Lerna links #914

Merged
merged 1 commit into from
Oct 12, 2018

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Oct 12, 2018

If the integ tests are run in the source directroy, the "npm install"
command will go up to find package.json and replace its node_modules
directory, thereby breaking the Lerna symlinks and making subsequent
toolkit executions fail because it can't find '@aws-cdk/cx-api'.

Copy out the app directory to a temporary directory and run the test
there, so that the source tree remains undisturbed.

It's a fixed directory name, seems simpler than generating a temporary
directory on each run and then also having to install a cleanup hook.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

If the integ tests are run in the source directroy, the "npm install"
command will go up to find package.json and replace its node_modules
directory, thereby breaking the Lerna symlinks and making subsequent
toolkit executions fail because it can't find '@aws-cdk/cx-api'.

Copy out the app directory to a temporary directory and run the test
there, so that the source tree remains undisturbed.

It's a fixed directory name, seems simpler than generating a temporary
directory on each run and then also having to install a cleanup hook.
@rix0rrr rix0rrr merged commit e802575 into master Oct 12, 2018
@rix0rrr rix0rrr deleted the huijbers/toolkit-tests-break-lerna-links branch October 12, 2018 09:55
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants