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(tests): setup circleci to run unit tests againt v5 #36714

Merged
merged 16 commits into from Oct 3, 2022
Merged

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Sep 29, 2022

Description

Documentation

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 29, 2022
@pieh pieh added type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 29, 2022
@pieh pieh changed the title test test for debugging test: setup circleci to run unit tests againt v5 Oct 3, 2022
Comment on lines -306 to +313
// The second param is a "hint", see: https://jestjs.io/docs/en/expect#tomatchsnapshotpropertymatchers-hint
expect(results).toMatchSnapshot({}, `results`)
expect(reporter.warn.mock.calls).toMatchSnapshot({}, `warn`)
expect(reporter.panicOnBuild.mock.calls).toMatchSnapshot({}, `panicOnBuild`)
expect({
results,
warnCalls: reporter.warn.mock.calls,
panicOnBuildCalls: reporter.panicOnBuild.mock.calls,
}).toMatchSnapshot()
Copy link
Contributor Author

@pieh pieh Oct 3, 2022

Choose a reason for hiding this comment

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

this was failing with "obsolete snapshots" even tho jest is supposed to not fail on it when there are snapshots in skipped tests ( jestjs/jest#3038 ). Seems like either using multiple snapshots and/or using the named ones is edge case, so I used single snapshot here instead

postfix: `SortInputProp2`,
postfix: `SortInput`,
Copy link
Contributor Author

@pieh pieh Oct 3, 2022

Choose a reason for hiding this comment

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

This is actual v5 code fix that slipped through original PR ( #36708 )

@pieh pieh marked this pull request as ready for review October 3, 2022 08:34
Copy link
Contributor

@imjoshin imjoshin left a comment

Choose a reason for hiding this comment

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

:shipit:

@imjoshin imjoshin changed the title test: setup circleci to run unit tests againt v5 chore(tests): setup circleci to run unit tests againt v5 Oct 3, 2022
@pieh pieh merged commit ba146fd into master Oct 3, 2022
@pieh pieh deleted the test/run-v5 branch October 3, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants