diff --git a/test-setup/run_spec.mjs b/test-setup/run_spec.mjs index 9be86fe..9fd59e2 100644 --- a/test-setup/run_spec.mjs +++ b/test-setup/run_spec.mjs @@ -45,7 +45,9 @@ function run_spec(dirname, parsers, options) { raw(source + '~'.repeat(80) + '\n' + result), ).toMatchSnapshot(filename); } catch (e) { - console.error(e, path); + throw new Error( + `Problem occurred in ${path} file: ${error.name}`, + ); } });