Merge pull request #20552 from overleaf/ac-update-node-fetch-2

Reapply "Upgrade node-fetch to 2.7.0", Fix fetch-utils tests

GitOrigin-RevId: b42a2d2c50ce73f474e39755845e4df065f30b48
This commit is contained in:
Antoine Clausse
2024-10-01 08:05:18 +00:00
committed by Copybot
parent 9997c4874f
commit 6c2cf20125
11 changed files with 107 additions and 409 deletions
@@ -12,6 +12,7 @@ class TestServer {
this.app.use(bodyParser.json())
this.app.use((req, res, next) => {
this.events.emit('request-received')
this.lastReq = req
next()
})
@@ -40,7 +41,6 @@ class TestServer {
})
this.app.post('/sink', (req, res) => {
this.events.emit('request-received')
req.on('data', () => {})
req.on('end', () => {
res.status(204).end()