diff --git a/package.json b/package.json index d3cc2dac..14be2bf8 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@types/node": "^17.0.1", "@typescript-eslint/parser": "^4.33.0", "climem": "^1.0.3", + "concat-stream": "^2.0.0", "eslint": "^7.7.0", "eslint-config-standard": "^16.0.0", "eslint-config-standard-with-typescript": "^21.0.1", diff --git a/test/multipart-disk.test.js b/test/multipart-disk.test.js index 5ad010ab..e471e31c 100644 --- a/test/multipart-disk.test.js +++ b/test/multipart-disk.test.js @@ -10,7 +10,6 @@ const { Readable } = require('readable-stream') const path = require('path') const fs = require('fs') const { access } = require('fs').promises -const rimraf = require('rimraf') const EventEmitter = require('events') const { once } = EventEmitter @@ -245,7 +244,7 @@ test('should not throw on request files cleanup error', { skip: process.platform try { await req.saveRequestFiles({ tmpdir }) // temp file saved, remove before the onResponse hook - rimraf.sync(tmpdir) + await fs.promises.rm(tmpdir, { recursive: true, force: true }) reply.code(200).send() } catch (error) { reply.code(500).send()