Skip to content

Commit

Permalink
Simplify global test.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Jul 31, 2024
1 parent 8b92755 commit d2ddd34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ describe('global', () => {
// TODO: Hangs on Windows
const itSkipWindows = process.platform === 'win32' ? it.skip : it
itSkipWindows('global should run', async () => {
// to speed up the test, only check npm (which is always installed globally)
const { stdout } = await spawn('node', [bin, '--jsonAll', '--global', 'npm'])
const json = JSON.parse(stdout)
expect(json).to.have.property('npm')
const { stdout } = await spawn('node', [bin, '--global', 'npm'])
expect(JSON.parse(stdout))
})
})

0 comments on commit d2ddd34

Please sign in to comment.