Skip to content

chore(dev): Update jest and friends #4897

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

Merged
merged 6 commits into from
Apr 11, 2022
Merged

chore(dev): Update jest and friends #4897

merged 6 commits into from
Apr 11, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Apr 7, 2022

This updates jest, ts-jest, and jest-environment-node to the latest versions, in order to facilitate code transformations during ts-jest's on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend global is fine if it's a var (which it is in ES5 Land) but less fine if it's a const (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates jsdom. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.07 KB (-0.35% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 64.25 KB (-0.56% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.78 KB (-0.44% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 57.64 KB (-0.57% 🔽)
@sentry/browser - Webpack (gzipped + minified) 23.04 KB (-0.87% 🔽)
@sentry/browser - Webpack (minified) 80.83 KB (-1.09% 🔽)
@sentry/react - Webpack (gzipped + minified) 23.08 KB (-0.86% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.87 KB (-0.4% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.01 KB (-0.24% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.42 KB (-0.24% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-update-jest branch 15 times, most recently from a7f3a61 to 198235c Compare April 11, 2022 03:22
@lobsterkatie lobsterkatie marked this pull request as draft April 11, 2022 03:24
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone Apr 11, 2022
@lobsterkatie lobsterkatie force-pushed the kmclb-update-jest branch 4 times, most recently from af84d8a to 2193405 Compare April 11, 2022 21:32
@lobsterkatie lobsterkatie marked this pull request as ready for review April 11, 2022 23:46
@lobsterkatie lobsterkatie merged commit af7abc0 into 7.x Apr 11, 2022
@lobsterkatie lobsterkatie deleted the kmclb-update-jest branch April 11, 2022 23:47
lobsterkatie added a commit that referenced this pull request Apr 13, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
Lms24 pushed a commit that referenced this pull request Apr 26, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
AbhiPrasad pushed a commit that referenced this pull request Apr 26, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
This updates `jest`, `ts-jest`, and `jest-environment-node` to the latest versions, in order to facilitate code transformations during `ts-jest`'s on-the-fly compilation that will become necessary once we move to ES6. (More detail on this to come in the PR which actually introduces said transformation, but TL;DR the way we use and extend `global` is fine if it's a `var` (which it is in ES5 Land) but less fine if it's a `const` (which it becomes under ES6), and we need to fix that for tests to run.)

It also updates `jsdom`. Together these updates meant that a larger number of packages needed to be downgraded in order for tests to run in node 8 and 10. This therefore also reworks the test script a bit to account for those changes. Finally, this removes the test environment from our main jest config, as its value has become the default in latest version of jest.
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.

2 participants