File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict'
22
33const { execSync } = require ( 'node:child_process' )
4- const { test } = require ( 'tap' )
4+ const { test, skip } = require ( 'tap' )
5+ const { nodeMajor } = require ( '../../lib/core/util' )
6+
7+ if ( nodeMajor === 16 ) {
8+ skip ( 'esbuild uses static blocks with --keep-names which node 16.8 does not have' )
9+ process . exit ( )
10+ }
511
612const command = 'node -e "require(\'./undici-fetch.js\').fetch(\'https://httpbin.org/get\')"'
713
Original file line number Diff line number Diff line change 11'use strict'
22
3- const { test } = require ( 'tap' )
3+ const { test, skip } = require ( 'tap' )
4+ const { nodeMajor } = require ( '../../lib/core/util' )
5+
6+ if ( nodeMajor === 16 ) {
7+ skip ( 'esbuild uses static blocks with --keep-names which node 16.8 does not have' )
8+ process . exit ( )
9+ }
410
511const undici = require ( '../..' )
612const { fetch : theoreticalGlobalFetch } = require ( '../../undici-fetch' )
Original file line number Diff line number Diff line change 11'use strict'
22
3- const { test } = require ( 'tap' )
3+ const { test, skip } = require ( 'tap' )
44const events = require ( 'events' )
55const http = require ( 'http' )
66const undici = require ( '../../' )
77const nodeBuild = require ( '../../undici-fetch.js' )
8+ const { nodeMajor } = require ( '../../lib/core/util' )
9+
10+ if ( nodeMajor === 16 ) {
11+ skip ( 'esbuild uses static blocks with --keep-names which node 16.8 does not have' )
12+ process . exit ( )
13+ }
814
915test ( 'user-agent defaults correctly' , async ( t ) => {
1016 const server = http . createServer ( ( req , res ) => {
You can’t perform that action at this time.
0 commit comments