Skip to content

Commit 4df424c

Browse files
authored
test: skip pkg test in CITGM (#2112)
1 parent 6bf9478 commit 4df424c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/pkg/pkg.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const { join } = require('node:path')
88
const { platform } = require('node:process')
99
const execFile = promisify(require('node:child_process').execFile)
1010

11+
const skip = process.env.PNPM_CI || process.env.CITGM
12+
1113
/**
1214
* The following regex is for tesintg the deprecation warning that is thrown by the `punycode` module.
1315
* Exact text that it's matching is:
@@ -18,7 +20,7 @@ const execFile = promisify(require('node:child_process').execFile)
1820
*/
1921
const deprecationWarningRegex = /^\(\w+:\d+\)\s\[[\w|\d]+\]\sDeprecationWarning: The `punycode` module is deprecated\.\s+Please use a userland alternative instead\.\s+\(Use `node --trace-deprecation \.\.\.` to show where the warning was created\)\s+$/
2022

21-
test('worker test when packaged into executable using pkg', { skip: !!process.env.PNPM_CI }, async (t) => {
23+
test('worker test when packaged into executable using pkg', { skip }, async (t) => {
2224
const packageName = 'index'
2325

2426
// package the app into several node versions, check config for more info

0 commit comments

Comments
 (0)