From 01ad1ca28873d691b2fd1efa54edd5582d9cb401 Mon Sep 17 00:00:00 2001 From: Sebastian Werner Date: Wed, 23 Mar 2022 00:00:15 +0100 Subject: [PATCH] Fixed path issues while trying to execute preppy --- test/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/util.js b/test/util.js index f193284..68ee3df 100644 --- a/test/util.js +++ b/test/util.js @@ -1,3 +1,5 @@ +import path from "path" + import execa from "execa" export function preppy(options) { @@ -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) }