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(deps) updates (all but insomnia) to use @jest/globals #4793

Merged
merged 2 commits into from May 18, 2022

Conversation

dimitropoulos
Copy link
Contributor

@dimitropoulos dimitropoulos commented May 18, 2022

This work was scoped out of the recent PR to move to jest 28 for the sake of time and complexity. I am therefore following up with it here.

There are enough tests in the insomnia package that I opted to do all but that package in this PR and hopefully get this PR merged quickly then move on to just the insomnia package as to reduce rebase-workload.

for anyone interested to learn more about @jest/globals DefinitelyTyped/DefinitelyTyped#44365 is a decent primer. the TLDR; is that it allows us to use jest without globals (which, for us, means that we can't then accidentally call jest globals from our non-test source code).

Copy link
Contributor

@marckong marckong left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jackkav jackkav left a comment

Choose a reason for hiding this comment

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

Take a bow 👏

we really gotta look into this... I tried to actually use the ImportRequest type but it results in dozens of legit errors.  fell back to previous implementation using Record<string, any>[]
@dimitropoulos dimitropoulos merged commit 6e5476d into Kong:develop May 18, 2022
@dimitropoulos dimitropoulos deleted the feat/jest-globals branch May 18, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants