Skip to content

Commit

Permalink
chore(deps): update jest monorepo to v29 (major) (freeCodeCamp#49775)
Browse files Browse the repository at this point in the history
* chore(deps): update jest monorepo to v29

* chore: install jest-environment-jsdom

* chore: update snapshots

* fix: update config to transform nanoid+uuid

* chore: update babel's node target

This does not seem strictly necessary, but is probably for the best.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <[email protected]>
  • Loading branch information
renovate[bot] and ojeytonwilliams authored Mar 21, 2023
1 parent 3dab426 commit 7ecf6a4
Show file tree
Hide file tree
Showing 19 changed files with 779 additions and 562 deletions.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"@types/chai": "^4.3.4",
"@types/enzyme": "^3.10.12",
"@types/enzyme-adapter-react-16": "1.0.6",
"@types/jest": "27.5.2",
"@types/jest": "29.5.0",
"@types/jquery": "^3.5.16",
"@types/loadable__component": "5.13.4",
"@types/lodash-es": "^4.17.6",
Expand Down Expand Up @@ -178,6 +178,7 @@
"core-js": "2.6.12",
"dotenv": "16.0.3",
"gatsby-plugin-webpack-bundle-analyser-v2": "1.1.30",
"jest-environment-jsdom": "29.5.0",
"jest-json-schema-extended": "1.0.1",
"monaco-editor-webpack-plugin": "4.2.0",
"react-test-renderer": "16.14.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ exports[`should check certification page consistency 1`] = `
<li
className="timeline-pagination_list_item"
style={
Object {
{
"visibility": "hidden",
}
}
Expand All @@ -390,7 +390,7 @@ exports[`should check certification page consistency 1`] = `
<li
className="timeline-pagination_list_item"
style={
Object {
{
"visibility": "hidden",
}
}
Expand All @@ -411,7 +411,7 @@ exports[`should check certification page consistency 1`] = `
<li
className="timeline-pagination_list_item"
style={
Object {
{
"visibility": "unset",
}
}
Expand All @@ -427,7 +427,7 @@ exports[`should check certification page consistency 1`] = `
<li
className="timeline-pagination_list_item"
style={
Object {
{
"visibility": "unset",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports[`<Honesty /> <Honesty /> snapshot when isHonest is false: Honesty 1`] =
<a
href="mailto:[email protected]"
>
Object {
{
"email": "[email protected]",
}
</a>
Expand Down Expand Up @@ -94,7 +94,7 @@ exports[`<Honesty /> <Honesty /> snapshot when isHonest is true: HonestyAccepted
<a
href="mailto:[email protected]"
>
Object {
{
"email": "[email protected]",
}
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should check certification button consistency 1`] = `
Array [
[
<div
className="row"
>
Expand All @@ -11,7 +11,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -151,7 +151,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -291,7 +291,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -431,7 +431,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -571,7 +571,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -711,7 +711,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -851,7 +851,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -991,7 +991,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1131,7 +1131,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1271,7 +1271,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1411,7 +1411,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1546,7 +1546,7 @@ Array [
`;

exports[`should check legacy certification button consistency 1`] = `
Array [
[
<div
className="row"
>
Expand All @@ -1556,7 +1556,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1776,7 +1776,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -1996,7 +1996,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -2216,7 +2216,7 @@ Array [
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down
14 changes: 7 additions & 7 deletions client/src/pages/__snapshots__/email-sign-up.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand All @@ -30,7 +30,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down Expand Up @@ -99,7 +99,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand All @@ -111,7 +111,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand All @@ -124,7 +124,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "5px 0",
}
Expand All @@ -141,7 +141,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "5px 0",
}
Expand All @@ -154,7 +154,7 @@ exports[`<EmailSignUp /> Non-Authenticated user "not accepted terms and conditio
<div
className="spacer"
style={
Object {
{
"height": "1px",
"padding": "15px 0",
}
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
'^.+\\.[jt]sx?$': '<rootDir>/jest.transform.js'
},
roots: ['.', './client', './api-server'],
transformIgnorePatterns: ['node_modules/(?!(gatsby)/)'],
transformIgnorePatterns: ['node_modules/.pnpm/(?!(nanoid|uuid)@)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testEnvironment: 'jsdom'
};
2 changes: 1 addition & 1 deletion jest.transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const babelOptions = {
'@babel/preset-env',
{
targets: {
node: 14
node: 18
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@testing-library/dom": "8.20.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/user-event": "13.5.0",
"@types/jest": "27.5.2",
"@types/jest": "29.5.0",
"@types/lodash": "4.14.191",
"@types/node": "18.15.3",
"@types/store": "2.0.2",
Expand All @@ -133,7 +133,7 @@
"eslint-plugin-testing-library": "4.12.4",
"execa": "5.1.1",
"husky": "8.0.3",
"jest": "27.5.1",
"jest": "29.5.0",
"js-yaml": "3.14.1",
"lint-staged": "^13.1.0",
"lodash": "4.17.21",
Expand Down
Loading

0 comments on commit 7ecf6a4

Please sign in to comment.