Skip to content

Commit

Permalink
chore: execaCommandSync
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Dec 9, 2024
1 parent 3f1412a commit 7be20e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/testing/src/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fileURLToPath } from 'url'

import test from 'ava'
import cpy from 'cpy'
import { execa, execaCommand } from 'execa'
import { execa, execaCommandSync } from 'execa'
import stringify from 'fast-safe-stringify'
import { getBinPathSync } from 'get-bin-path'
import isPlainObj from 'is-plain-obj'
Expand Down Expand Up @@ -150,7 +150,7 @@ export class Fixture {
await cpy('./**', this.copyRootDir, { cwd: this.repositoryRoot })

if (copyRoot.branch !== undefined) {
await execaCommand(`git checkout -b ${copyRoot.branch}`, { cwd: this.copyRootDir })
await execaCommandSync(`git checkout -b ${copyRoot.branch}`, { cwd: this.copyRootDir })
}

this.repositoryRoot = this.copyRootDir
Expand Down

0 comments on commit 7be20e2

Please sign in to comment.