Skip to content

Commit

Permalink
Fix tests for Windows environment
Browse files Browse the repository at this point in the history
  • Loading branch information
amcaplan committed Jun 16, 2024
1 parent 4ea983f commit 48677ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/cli/services/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('upgrade local CLI', () => {
await upgradeService.upgrade(tmpDir, oldCliVersion, {env: {}})

// Then
expect(captureOutput).toHaveBeenCalledWith('npm', ['prefix'], {cwd: tmpDir})
expect(captureOutput).toHaveBeenCalledWith('npm', ['prefix'], {cwd: normalizePath(tmpDir)})
expect(outputMock.info()).toMatchInlineSnapshot(`
"Upgrading CLI from ${oldCliVersion} to ${currentCliVersion}..."
`)
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('upgrade local CLI', () => {
await upgradeService.upgrade(tmpDir, oldCliVersion, {env: {}})

// Then
expect(captureOutput).toHaveBeenCalledWith('npm', ['prefix'], {cwd: tmpDir})
expect(captureOutput).toHaveBeenCalledWith('npm', ['prefix'], {cwd: normalizePath(tmpDir)})
expect(outputMock.info()).toMatchInlineSnapshot(`
"Upgrading CLI from ${oldCliVersion} to ${currentCliVersion}..."
`)
Expand Down

0 comments on commit 48677ab

Please sign in to comment.