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 metcoder95 committed Jul 21, 2023
1 parent 158d794 commit a7b51d7
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 a7b51d7

Please sign in to comment.