From d9f35c73e146ca042b4e6ca9d7080d091e991d28 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 May 2023 06:15:13 +0000 Subject: [PATCH 1/3] fix(deps): update e2e tests --- e2e-tests/development-runtime/package.json | 2 +- e2e-tests/production-runtime/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e-tests/development-runtime/package.json b/e2e-tests/development-runtime/package.json index 031c26d5a3c7c..7f385f29711f1 100644 --- a/e2e-tests/development-runtime/package.json +++ b/e2e-tests/development-runtime/package.json @@ -19,7 +19,7 @@ "gatsby-transformer-json": "next", "gatsby-transformer-remark": "next", "gatsby-transformer-sharp": "next", - "node-fetch": "^2.6.9", + "node-fetch": "^3.3.1", "react": "^18.2.0", "react-dom": "^18.2.0", "sass": "^1.62.1" diff --git a/e2e-tests/production-runtime/package.json b/e2e-tests/production-runtime/package.json index 357c3f79fabfb..679a17824c081 100644 --- a/e2e-tests/production-runtime/package.json +++ b/e2e-tests/production-runtime/package.json @@ -16,7 +16,7 @@ "gatsby-plugin-sharp": "next", "gatsby-plugin-stylus": "next", "gatsby-source-filesystem": "next", - "glob": "^8.1.0", + "glob": "^10.2.2", "react": "^18.2.0", "react-dom": "^18.2.0", "sass": "^1.62.1", From 9033d7e9430228e36f782e196974bcec14247d45 Mon Sep 17 00:00:00 2001 From: LekoArts Date: Mon, 8 May 2023 12:00:28 +0200 Subject: [PATCH 2/3] make node-fetch work --- e2e-tests/development-runtime/package.json | 4 ++-- .../scripts/{cms-webhook.js => cms-webhook.mjs} | 2 +- .../development-runtime/scripts/{webhook.js => webhook.mjs} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename e2e-tests/development-runtime/scripts/{cms-webhook.js => cms-webhook.mjs} (84%) rename e2e-tests/development-runtime/scripts/{webhook.js => webhook.mjs} (89%) diff --git a/e2e-tests/development-runtime/package.json b/e2e-tests/development-runtime/package.json index 7f385f29711f1..c44e8c62892f1 100644 --- a/e2e-tests/development-runtime/package.json +++ b/e2e-tests/development-runtime/package.json @@ -44,8 +44,8 @@ "reset": "node scripts/reset.js", "reset:preview": "curl -X POST http://localhost:8000/__refresh", "update": "node scripts/update.js", - "update:webhook": "node scripts/webhook.js", - "update:cms-webhook": "node scripts/cms-webhook.js", + "update:webhook": "node scripts/webhook.mjs", + "update:cms-webhook": "node scripts/cms-webhook.mjs", "update:preview": "curl -X POST -d \"{ \\\"fake-data-update\\\": true }\" -H \"Content-Type: application/json\" http://localhost:8000/__refresh", "start-server-and-test": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 combined", "start-server-and-test:locally": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 cy:open", diff --git a/e2e-tests/development-runtime/scripts/cms-webhook.js b/e2e-tests/development-runtime/scripts/cms-webhook.mjs similarity index 84% rename from e2e-tests/development-runtime/scripts/cms-webhook.js rename to e2e-tests/development-runtime/scripts/cms-webhook.mjs index d1db96943e794..0825df2470ae5 100644 --- a/e2e-tests/development-runtime/scripts/cms-webhook.js +++ b/e2e-tests/development-runtime/scripts/cms-webhook.mjs @@ -1,4 +1,4 @@ -const fetch = require(`node-fetch`) +import fetch from "node-fetch" fetch(`http://localhost:8000/__refresh/${process.argv[2]}`, { method: `POST`, diff --git a/e2e-tests/development-runtime/scripts/webhook.js b/e2e-tests/development-runtime/scripts/webhook.mjs similarity index 89% rename from e2e-tests/development-runtime/scripts/webhook.js rename to e2e-tests/development-runtime/scripts/webhook.mjs index 5df6efda75ead..a6cc82d3d64af 100644 --- a/e2e-tests/development-runtime/scripts/webhook.js +++ b/e2e-tests/development-runtime/scripts/webhook.mjs @@ -1,4 +1,4 @@ -const fetch = require(`node-fetch`) +import fetch from "node-fetch" fetch(`http://localhost:8000/__refresh`, { method: `POST`, From eb181dcddee28547240abfda621a2d389c2c9fb3 Mon Sep 17 00:00:00 2001 From: LekoArts Date: Mon, 8 May 2023 12:04:25 +0200 Subject: [PATCH 3/3] remove unused glob --- e2e-tests/production-runtime/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/e2e-tests/production-runtime/package.json b/e2e-tests/production-runtime/package.json index 679a17824c081..e22347fbd9ecb 100644 --- a/e2e-tests/production-runtime/package.json +++ b/e2e-tests/production-runtime/package.json @@ -16,7 +16,6 @@ "gatsby-plugin-sharp": "next", "gatsby-plugin-stylus": "next", "gatsby-source-filesystem": "next", - "glob": "^10.2.2", "react": "^18.2.0", "react-dom": "^18.2.0", "sass": "^1.62.1",