Skip to content

Commit 89f2905

Browse files
committed
fix: switch to node-fetch 2.X to support node 17/18 in the test suit
1 parent 7ebad8a commit 89f2905

File tree

3 files changed

+6
-33
lines changed

3 files changed

+6
-33
lines changed

package-lock.json

Lines changed: 4 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
9696
"mongodb-runner": "4.8.1",
9797
"mongodb-version-list": "1.0.0",
98-
"node-fetch": "3.1.1",
98+
"node-fetch": "2.6.7",
9999
"nyc": "15.1.0",
100100
"prettier": "2.0.5",
101101
"semantic-release": "17.4.6",

spec/ParseGraphQLServer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const http = require('http');
22
const express = require('express');
33
const req = require('../lib/request');
4-
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
4+
const fetch = require('node-fetch');
55
const FormData = require('form-data');
66
const ws = require('ws');
77
require('./helper');

0 commit comments

Comments
 (0)