Skip to content

Commit ef50a5c

Browse files
committed
Better error massage for ts-project test
1 parent 8e81938 commit ef50a5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/package.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ test('ts project', async () => {
3232
await $`npm i`
3333
await $`rm -rf node_modules/zx`
3434
await $`mv ${pack} node_modules/zx`
35-
await $`npx tsc`
35+
try {
36+
await $`npx tsc`
37+
} catch (err) {
38+
throw new Error(err.stdout)
39+
}
3640
return $`node build/script.js`
3741
})
3842
assert.match(out.stderr, 'ts-script')

0 commit comments

Comments
 (0)