diff --git a/bin/run-tests.sh b/bin/run-tests.sh index 1adadcd..d2fd795 100755 --- a/bin/run-tests.sh +++ b/bin/run-tests.sh @@ -48,6 +48,7 @@ for test_file in $(find "${tmp_fixtures_dir}" -name '*.spec.js'); do fi; if [ $? -ne 0 ]; then + echo "diff \"${results_file_path}\" \"${expected_results_file_path}\" reported $?" exit_code=1 fi done diff --git a/test/fixtures/two-fer/error/malformed_tests/expected_results.json b/test/fixtures/two-fer/error/malformed_tests/expected_results.json index 875ad75..7d517dc 100644 --- a/test/fixtures/two-fer/error/malformed_tests/expected_results.json +++ b/test/fixtures/two-fer/error/malformed_tests/expected_results.json @@ -1,6 +1,6 @@ { "status": "error", - "message": "SyntaxError: /two-fer.spec.js: Unexpected token (2:0)\n\n \u001b[0m \u001b[90m 1 |\u001b[39m describe(\u001b[32m'twoFer()'\u001b[39m\u001b[33m,\u001b[39m t(\u001b[32m'another name given'\u001b[39m\u001b[33m,\u001b[39m () \u001b[33m=>\u001b[39m {\u001b[0m\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 2 |\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n", + "message": "SyntaxError: /two-fer.spec.js: Unexpected token (2:0)\n\n 1 | describe('twoFer()', t('another name given', () => {\n > 2 |\n | ^\n", "tests": [], "version": 3 } \ No newline at end of file diff --git a/test/fixtures/two-fer/error/syntax/expected_results.json b/test/fixtures/two-fer/error/syntax/expected_results.json index 2eb0c9c..4c3ba28 100644 --- a/test/fixtures/two-fer/error/syntax/expected_results.json +++ b/test/fixtures/two-fer/error/syntax/expected_results.json @@ -1,6 +1,6 @@ { "status": "error", - "message": "SyntaxError: /two-fer.js: Unexpected keyword 'const'. (1:13)\n\n \u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 1 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mconst\u001b[39m \u001b[36mconst\u001b[39m () \u001b[33m=>\u001b[39m { (\u001b[0m\n \u001b[0m \u001b[90m |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n \u001b[0m \u001b[90m 2 |\u001b[39m\u001b[0m\n", + "message": "SyntaxError: /two-fer.js: Unexpected keyword 'const'. (1:13)\n\n > 1 | export const const () => { (\n | ^\n 2 |\n", "tests": [], "version": 3 } \ No newline at end of file