From c6dfd8c2d1e9ad2cedbfdcc04e3647ecebfc934c Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 21 Sep 2019 10:00:34 -0400 Subject: [PATCH] quality of life improvement --- test/runtime/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/runtime/index.js b/test/runtime/index.js index 28ef9e4d78..7b8986576a 100644 --- a/test/runtime/index.js +++ b/test/runtime/index.js @@ -197,6 +197,11 @@ describe.only("runtime", () => { throw err; } }) + .catch(err => { + // print a clickable link to open the directory + err.stack += `\n\ncmd-click: ${path.relative(process.cwd(), cwd)}/main.svelte`; + throw err; + }) .then(() => { if (config.show) { showOutput(cwd, compileOptions, compile);