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(core): stack.test.ts is now using jest #12596

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Conversation

nija-at
Copy link
Contributor

@nija-at nija-at commented Jan 19, 2021

Move stack.test.ts to use native jest APIs instead of
nodeunitshim.

Motivation
As part of the work for feature flags, it's easier to inject conditional
testing using jest's native APIs than to work with nodeunitshim.

Nevertheless, we should be using native jest APIs everywhere.


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

@nija-at nija-at self-assigned this Jan 19, 2021
@gitpod-io
Copy link

gitpod-io bot commented Jan 19, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 19, 2021
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label Jan 19, 2021
@nija-at nija-at requested review from rix0rrr and a team January 19, 2021 16:42
@nija-at nija-at marked this pull request as ready for review January 19, 2021 16:42
@mergify
Copy link
Contributor

mergify bot commented Jan 19, 2021

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).

@nija-at
Copy link
Contributor Author

nija-at commented Jan 19, 2021

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jan 19, 2021

Command refresh: success

Pull request refreshed

@mergify
Copy link
Contributor

mergify bot commented Jan 19, 2021

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 12868a2 into master Jan 19, 2021
@mergify mergify bot deleted the nija-at/stack-test-jest branch January 19, 2021 17:57
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

mohanrajendran pushed a commit to mohanrajendran/aws-cdk that referenced this pull request Jan 24, 2021
Move `stack.test.ts` to use native jest APIs instead of
`nodeunitshim`.

Motivation
As part of the work for feature flags, it's easier to inject conditional
testing using jest's native APIs than to work with nodeunitshim.

Nevertheless, we should be using native jest APIs everywhere.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request May 6, 2021
* use native jest API like what #12596 did
* move `removal policy is "Retain" by default` & `'grant adds appropriate resource-*'` tests out of `events` scope in `repository.test.ts`, which I believe they were misplaced

I'm doing this partially because I would like to implement the feature proposed in #12618. It would be easier to mock `aws-sdk` function calls with jest.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
john-tipper pushed a commit to john-tipper/aws-cdk that referenced this pull request May 10, 2021
* use native jest API like what aws#12596 did
* move `removal policy is "Retain" by default` & `'grant adds appropriate resource-*'` tests out of `events` scope in `repository.test.ts`, which I believe they were misplaced

I'm doing this partially because I would like to implement the feature proposed in aws#12618. It would be easier to mock `aws-sdk` function calls with jest.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
* use native jest API like what aws#12596 did
* move `removal policy is "Retain" by default` & `'grant adds appropriate resource-*'` tests out of `events` scope in `repository.test.ts`, which I believe they were misplaced

I'm doing this partially because I would like to implement the feature proposed in aws#12618. It would be easier to mock `aws-sdk` function calls with jest.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality 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