Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 7aef6c5

Browse files
committed
Minor cleanups/fixes in test runner stability
1 parent 8c6e06c commit 7aef6c5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/esnext-fail/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ test("Publish Test File via Babel", async () => {
1818
preppy({
1919
cwd: __dirname
2020
})
21-
).rejects.toThrow('Unexpected token, expected ";" (2:17)')
21+
).rejects.toThrow('Missing semicolon')
2222
})

test/util.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import execa from "execa"
22

3-
export async function preppy(options) {
3+
export function preppy(options) {
44
const { cwd, ...rest } = options
55
const opts = { cwd }
66

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

9-
const result = await execa("../../bin/preppy", args, opts)
10-
return result.exitCode
9+
return execa("../../bin/preppy", args, opts)
1110
}

0 commit comments

Comments
 (0)