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

Gatsby upgrade from v4 to v5 #535

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require("dotenv").config({

module.exports = {
pathPrefix: `/casei`,
trailingSlash: `always`,
siteMetadata: {
title: `Catalog of Archived Suborbital Earth Science Investigations`,
shortname: `NASA | CASEI`,
Expand All @@ -24,7 +25,6 @@ module.exports = {
},
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
Expand Down Expand Up @@ -65,11 +65,6 @@ module.exports = {
},
},
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/edit/*`] },
},

{
resolve: `gatsby-plugin-csp`,
options: {
Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module.exports = {
globals: {
__PATH_PREFIX__: ``,
},
testURL: `http://localhost`,
testEnvironmentOptions: {
url: `http://localhost`,
},
setupFiles: [`<rootDir>/test/jest.setup.js`, `<rootDir>/test/loadershim.js`],
}
61 changes: 32 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,47 @@
],
"dependencies": {
"@fontsource/titillium-web": "^4.5.2",
"@gatsbyjs/reach-router": "^1.3.4",
"@gatsbyjs/reach-router": "^2.0.1",
"@juggle/resize-observer": "^3.3.1",
"@mapbox/geo-viewport": "^0.5.0",
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@reach/accordion": "^0.17.0",
"@reach/auto-id": "^0.17.0",
"@reach/accordion": "^0.18.0",
"@reach/auto-id": "^0.18.0",
"@reach/combobox": "^0.18.0",
"@reach/disclosure": "^0.17.0",
"@reach/listbox": "^0.17.0",
"@reach/disclosure": "^0.18.0",
"@reach/listbox": "^0.18.0",
"@reach/tooltip": "^0.18.0",
"@reach/visually-hidden": "^0.17.0",
"@reach/visually-hidden": "^0.18.0",
"@turf/area": "^6.5.0",
"@turf/bbox": "^6.5.0",
"@turf/boolean-disjoint": "^6.5.0",
"@turf/envelope": "^6.5.0",
"d3": "^7.3.0",
"date-fns": "^2.28.0",
"gatsby": "^4.8.1",
"gatsby-plugin-create-client-paths": "^4.8.0",
"gatsby-plugin-csp": "^1.1.3",
"gatsby-plugin-google-gtag": "4.24.0",
"gatsby-plugin-image": "^2.8.1",
"gatsby-plugin-manifest": "^4.8.1",
"gatsby-plugin-offline": "^5.8.1",
"gatsby-plugin-postcss": "5.10.0",
"gatsby-plugin-react-helmet": "^5.8.0",
"gatsby-plugin-sharp": "^4.8.1",
"gatsby-plugin-styled-components": "^5.8.0",
"gatsby-plugin-typography": "^4.8.0",
"gatsby-source-filesystem": "^4.8.1",
"gatsby-transformer-json": "^4.8.0",
"gatsby-transformer-sharp": "^4.8.0",
"gatsby": "^5.11.0",
"gatsby-core-utils": "^4.11.0",
"gatsby-link": "^5.11.0",
"gatsby-plugin-csp": "^1.1.4",
"gatsby-plugin-google-gtag": "^5.11.0",
"gatsby-plugin-image": "^3.11.0",
"gatsby-plugin-manifest": "^5.11.0",
"gatsby-plugin-offline": "^6.11.0",
"gatsby-plugin-postcss": "^6.11.0",
"gatsby-plugin-sharp": "^5.11.0",
"gatsby-plugin-styled-components": "^6.11.0",
"gatsby-plugin-typography": "^5.11.0",
"gatsby-react-router-scroll": "^6.11.0",
"gatsby-script": "^2.11.0",
"gatsby-source-filesystem": "^5.11.0",
"gatsby-transformer-json": "^5.11.0",
"gatsby-transformer-sharp": "^5.11.0",
"lodash.debounce": "^4.0.8",
"mapbox-gl": "1.13.1",
"nuka-carousel": "^4.8.4",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react": "^18.2.0",
"react-datepicker": "^4.7.0",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-typography": "^0.16.20",
"styled-components": "^5.3.3",
Expand All @@ -67,33 +69,34 @@
"@playwright/test": "1.31.2",
"@quickbaseoss/babel-plugin-styled-components-css-namespace": "^1.0.1",
"@testing-library/cypress": "^8.0.2",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/react-hooks": "^8.0.1",
"axe-core": "^4.4.1",
"axe-playwright": "^1.2.3",
"babel-jest": "^29.5.0",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-styled-components": "^2.0.6",
"babel-preset-gatsby": "^2.8.1",
"babel-preset-gatsby": "^3.11.0",
"cypress": "^9.5.0",
"cypress-axe": "^0.14.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.4.0",
"eslint-config-react-app": "^7.0.0",
"eslint-plugin-inclusive-language": "^2.2.0",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-playwright": "0.12.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.3.0",
"gatsby-plugin-perf-budgets": "^0.0.18",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.26",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-styled-components": "^7.0.8",
"postcss": "8.4.23",
"prettier": "^2.5.1",
"react-test-renderer": "^17.0.1",
"start-server-and-test": "^1.14.0"
"react-test-renderer": "^18.2.0",
"start-server-and-test": "^2.0.0"
},
"license": "MIT",
"scripts": {
Expand Down
32 changes: 16 additions & 16 deletions src/components/__tests__/__snapshots__/card.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

exports[`Card renders card with tag 1`] = `
<div
className="card___StyledDiv-sc-16fz0z7-1 jaYWWZ"
className="card___StyledDiv-sc-16fz0z7-1 jcRYMA"
>
<a
className="card___StyledLink-sc-16fz0z7-2 jDaJEM"
className="card___StyledLink-sc-16fz0z7-2 dDHGTR"
data-cy="campaigns-card"
>
<div
className="card__CardHeader-sc-16fz0z7-0 lmhbIy"
className="card__CardHeader-sc-16fz0z7-0 gbQlKr"
>
<div
className="card___StyledDiv2-sc-16fz0z7-4 cPSZeM"
className="card___StyledDiv2-sc-16fz0z7-4 eUlfwF"
>
<svg
height="80"
Expand All @@ -34,15 +34,15 @@ exports[`Card renders card with tag 1`] = `
</svg>
</div>
<div
className="card___StyledDiv3-sc-16fz0z7-5 hcAeMi"
className="card___StyledDiv3-sc-16fz0z7-5 kHisdL"
data-cy="stationary-tag"
>
Stationary
</div>
</div>
<div>
<big
className="cardtest___StyledBig-sc-1cx8i5d-0 etMSdh"
className="cardtest___StyledBig-sc-1cx8i5d-0 kGDInE"
data-cy="shortname"
>
GCPEx
Expand All @@ -64,17 +64,17 @@ exports[`Card renders card with tag 1`] = `

exports[`Card renders plain card 1`] = `
<div
className="card___StyledDiv-sc-16fz0z7-1 jaYWWZ"
className="card___StyledDiv-sc-16fz0z7-1 jcRYMA"
>
<a
className="card___StyledLink-sc-16fz0z7-2 jDaJEM"
className="card___StyledLink-sc-16fz0z7-2 dDHGTR"
data-cy="campaigns-card"
>
<div
className="card__CardHeader-sc-16fz0z7-0 lmhbIy"
className="card__CardHeader-sc-16fz0z7-0 gbQlKr"
>
<div
className="card___StyledDiv2-sc-16fz0z7-4 cPSZeM"
className="card___StyledDiv2-sc-16fz0z7-4 eUlfwF"
>
<svg
height="80"
Expand All @@ -98,7 +98,7 @@ exports[`Card renders plain card 1`] = `
</div>
<div>
<big
className="cardtest___StyledBig-sc-1cx8i5d-0 etMSdh"
className="cardtest___StyledBig-sc-1cx8i5d-0 kGDInE"
data-cy="shortname"
>
GCPEx
Expand All @@ -120,17 +120,17 @@ exports[`Card renders plain card 1`] = `

exports[`Card renders with footer list 1`] = `
<div
className="card___StyledDiv-sc-16fz0z7-1 jaYWWZ"
className="card___StyledDiv-sc-16fz0z7-1 jcRYMA"
>
<a
className="card___StyledLink-sc-16fz0z7-2 jDaJEM"
className="card___StyledLink-sc-16fz0z7-2 dDHGTR"
data-cy="campaigns-card"
>
<div
className="card__CardHeader-sc-16fz0z7-0 lmhbIy"
className="card__CardHeader-sc-16fz0z7-0 gbQlKr"
>
<div
className="card___StyledDiv2-sc-16fz0z7-4 cPSZeM"
className="card___StyledDiv2-sc-16fz0z7-4 eUlfwF"
>
<svg
height="80"
Expand All @@ -154,7 +154,7 @@ exports[`Card renders with footer list 1`] = `
</div>
<div>
<big
className="cardtest___StyledBig-sc-1cx8i5d-0 etMSdh"
className="cardtest___StyledBig-sc-1cx8i5d-0 kGDInE"
data-cy="shortname"
>
GCPEx
Expand Down
6 changes: 3 additions & 3 deletions src/components/__tests__/__snapshots__/chip.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Chip renders with action 1`] = `
<div
className="chip___StyledDiv-sc-4ga8fx-0 hrdWGh"
className="chip___StyledDiv-sc-4ga8fx-0 beUorY"
data-cy="filter-chip"
>
<small
Expand All @@ -11,7 +11,7 @@ exports[`Chip renders with action 1`] = `
Weather
</small>
<button
className="button__Clickable-sc-1yw7vig-0 button___StyledClickable2-sc-1yw7vig-1 fRqvWm kXXfwm"
className="button__Clickable-sc-1yw7vig-0 button___StyledClickable2-sc-1yw7vig-1 cpFIXP bnrnET"
data-cy="remove-filter"
onClick={[Function]}
type="button"
Expand All @@ -38,7 +38,7 @@ exports[`Chip renders with action 1`] = `

exports[`Chip renders without action 1`] = `
<div
className="chip___StyledDiv-sc-4ga8fx-0 hrdWGh"
className="chip___StyledDiv-sc-4ga8fx-0 beUorY"
data-cy="filter-chip"
>
<small
Expand Down
Loading