Skip to content

Commit dc8d111

Browse files
authoredMar 29, 2023
fix: skip failing test in node >= v19.8 (#2034)
1 parent a9ef509 commit dc8d111

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎test/fetch/client-fetch.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const { ReadableStream } = require('stream/web')
88
const { Blob } = require('buffer')
99
const { fetch, Response, Request, FormData, File } = require('../..')
1010
const { Client, setGlobalDispatcher, Agent } = require('../..')
11+
const { nodeMajor, nodeMinor } = require('../../lib/core/util')
1112
const nodeFetch = require('../../index-fetch')
1213
const { once } = require('events')
1314
const { gzipSync } = require('zlib')
@@ -199,7 +200,9 @@ test('multipart formdata not base64', async (t) => {
199200
t.equal(text, 'example\ntext file')
200201
})
201202

202-
test('multipart formdata base64', (t) => {
203+
// TODO(@KhafraDev): re-enable this test once the issue is fixed
204+
// See https://github.com/nodejs/node/issues/47301
205+
test('multipart formdata base64', { skip: nodeMajor >= 19 && nodeMinor >= 8 }, (t) => {
203206
t.plan(1)
204207

205208
// Example form data with base64 encoding

0 commit comments

Comments
 (0)
Please sign in to comment.