Skip to content

Commit

Permalink
fix: switch to node-fetch 2.X to support node 17/18 in the test suit
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumouls committed May 5, 2022
1 parent 7ebad8a commit 89f2905
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
35 changes: 4 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
"mongodb-runner": "4.8.1",
"mongodb-version-list": "1.0.0",
"node-fetch": "3.1.1",
"node-fetch": "2.6.7",
"nyc": "15.1.0",
"prettier": "2.0.5",
"semantic-release": "17.4.6",
Expand Down
2 changes: 1 addition & 1 deletion spec/ParseGraphQLServer.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const http = require('http');
const express = require('express');
const req = require('../lib/request');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = require('node-fetch');
const FormData = require('form-data');
const ws = require('ws');
require('./helper');
Expand Down

0 comments on commit 89f2905

Please sign in to comment.