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: jest configs should not rely on source tree layout #8970

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 9, 2020

The way jest configs are currently inheriting from a parent
jest config makes it hard to do an out-of-source build, which we
want for future build improvements.

They used to go require('../../../tools/cdk-build-tools/...'),
relying on an exact layout in the source tree.

Given that cdk-build-tools is just a dependency of every
package, doing require('cdk-build-tools/...') works just as well
and only relies on the standard NPM contract (node_modules having
correct symlinks) and not source tree layout.


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

The way jest configs are currently inheriting from a parent
jest config makes it hard to do an out-of-source build, which we
want for future build improvements.

They used to go `require('../../../tools/cdk-build-tools/...')`,
relying on an exact layout in the source tree.

Given that `cdk-build-tools` is just a dependency of every
package, doing `require('cdk-build-tools/...')` works just as well
and only relies on the standard NPM contract (`node_modules` having
correct symlinks) and not source tree layout.
@rix0rrr rix0rrr requested a review from a team July 9, 2020 10:08
@rix0rrr rix0rrr self-assigned this Jul 9, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 9, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 3172e98
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please!

@mergify
Copy link
Contributor

mergify bot commented Jul 9, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit d80efae into master Jul 9, 2020
@mergify mergify bot deleted the huijbers/out-paths branch July 9, 2020 10:44
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