Skip to content

Commit

Permalink
Fixed path issues while trying to execute preppy
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Mar 22, 2022
1 parent bcde12b commit 01ad1ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/util.js
@@ -1,3 +1,5 @@
import path from "path"

import execa from "execa"

export function preppy(options) {
Expand All @@ -6,5 +8,5 @@ export function preppy(options) {

const args = Object.keys(rest).map((key) => `--${key}=${rest[key]}`)

return execa("../../bin/preppy", args, opts)
return execa(path.resolve("./bin/preppy"), args, opts)
}

0 comments on commit 01ad1ca

Please sign in to comment.