Skip to content

Commit 22394b9

Browse files
fix(deps): update e2e tests (major) (#38071)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: LekoArts <[email protected]>
1 parent 9bb9037 commit 22394b9

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

e2e-tests/development-runtime/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"gatsby-transformer-json": "next",
2020
"gatsby-transformer-remark": "next",
2121
"gatsby-transformer-sharp": "next",
22-
"node-fetch": "^2.6.9",
22+
"node-fetch": "^3.3.1",
2323
"react": "^18.2.0",
2424
"react-dom": "^18.2.0",
2525
"sass": "^1.62.1"
@@ -44,8 +44,8 @@
4444
"reset": "node scripts/reset.js",
4545
"reset:preview": "curl -X POST http://localhost:8000/__refresh",
4646
"update": "node scripts/update.js",
47-
"update:webhook": "node scripts/webhook.js",
48-
"update:cms-webhook": "node scripts/cms-webhook.js",
47+
"update:webhook": "node scripts/webhook.mjs",
48+
"update:cms-webhook": "node scripts/cms-webhook.mjs",
4949
"update:preview": "curl -X POST -d \"{ \\\"fake-data-update\\\": true }\" -H \"Content-Type: application/json\" http://localhost:8000/__refresh",
5050
"start-server-and-test": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 combined",
5151
"start-server-and-test:locally": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 cy:open",

e2e-tests/development-runtime/scripts/cms-webhook.js e2e-tests/development-runtime/scripts/cms-webhook.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fetch = require(`node-fetch`)
1+
import fetch from "node-fetch"
22

33
fetch(`http://localhost:8000/__refresh/${process.argv[2]}`, {
44
method: `POST`,

e2e-tests/development-runtime/scripts/webhook.js e2e-tests/development-runtime/scripts/webhook.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fetch = require(`node-fetch`)
1+
import fetch from "node-fetch"
22

33
fetch(`http://localhost:8000/__refresh`, {
44
method: `POST`,

e2e-tests/production-runtime/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"gatsby-plugin-sharp": "next",
1717
"gatsby-plugin-stylus": "next",
1818
"gatsby-source-filesystem": "next",
19-
"glob": "^8.1.0",
2019
"react": "^18.2.0",
2120
"react-dom": "^18.2.0",
2221
"sass": "^1.62.1",

0 commit comments

Comments
 (0)