Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Dec 23, 2024
1 parent bd58950 commit 41eb673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/pkg/pkg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ test('worker test when packaged into executable using pkg', { skip: !!process.en
// package the app into several node versions, check config for more info
const filePath = `${join(__dirname, packageName)}.js`
const configPath = join(__dirname, 'pkg.config.json')
const { stderr } = await execFile('npx', ['pkg', filePath, '--config', configPath])
const npxExecutable = platform === 'win32' ? 'npx.cmd' : 'npx'
const { stderr } = await execFile(npxExecutable, ['pkg', filePath, '--config', configPath])

// there should be no error when packaging
const expectedvalue = stderr === '' || deprecationWarningRegex.test(stderr)
Expand Down

0 comments on commit 41eb673

Please sign in to comment.