Commit ef50a5c

Anton Medvedev <anton@medv.io>
2022-06-30 21:36:48
Better error massage for ts-project test
1 parent 8e81938
Changed files (1)
test/package.test.js
@@ -32,7 +32,11 @@ test('ts project', async () => {
     await $`npm i`
     await $`rm -rf node_modules/zx`
     await $`mv ${pack} node_modules/zx`
-    await $`npx tsc`
+    try {
+      await $`npx tsc`
+    } catch (err) {
+      throw new Error(err.stdout)
+    }
     return $`node build/script.js`
   })
   assert.match(out.stderr, 'ts-script')