Skip to content

Commit

Permalink
fix: skip failing test in node >= v19.8 (nodejs#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev authored and crysmags committed Feb 27, 2024
1 parent 6910b65 commit 6a36532
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/fetch/client-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { ReadableStream } = require('stream/web')
const { Blob } = require('buffer')
const { fetch, Response, Request, FormData, File } = require('../..')
const { Client, setGlobalDispatcher, Agent } = require('../..')
const { nodeMajor, nodeMinor } = require('../../lib/core/util')
const nodeFetch = require('../../index-fetch')
const { once } = require('events')
const { gzipSync } = require('zlib')
Expand Down Expand Up @@ -199,7 +200,9 @@ test('multipart formdata not base64', async (t) => {
t.equal(text, 'example\ntext file')
})

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

// Example form data with base64 encoding
Expand Down

0 comments on commit 6a36532

Please sign in to comment.