Skip to content

Commit

Permalink
make run non-async, simply returns promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jldec committed Apr 10, 2024
1 parent 7861331 commit 5de9f30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ describe.concurrent(
)

// run command in __dirname
// returns 0 or rejects promise with error
// resolves promise with 0 or rejects promise with error
// inherits stdio so that vitest shows output
async function run(command: string): Promise<number> {
function run(command: string): Promise<number> {
return new Promise((resolve, reject) => {
const p = childProcess.spawn(command, {
cwd: __dirname,
Expand Down

0 comments on commit 5de9f30

Please sign in to comment.