Skip to content

Commit

Permalink
Fix mismatching results
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 30, 2024
1 parent d8f0d93 commit 9045203
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/test/fixtures
/test/fixtures/**/*
/tmp
/dist
/node_modules
Expand Down
3 changes: 3 additions & 0 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ for test_file in $(find "${tmp_fixtures_dir}" -name '*.test.ts'); do
if [ $? -ne 0 ]; then
echo "======================================================="
cat "${results_file_path}"
echo "======================================================="
exit_code=1
else
echo "✅ results match"
fi
done

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@
}
],
"version": 3
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"status": "error",
"message": "SyntaxError: <solution>/two-fer.test.ts: 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: <solution>/two-fer.test.ts: Unexpected token (2:0)\n\n 1 | describe('twoFer()', t('another name given', () => {\n > 2 |\n | ^\n",
"tests": [],
"version": 3
}
}

0 comments on commit 9045203

Please sign in to comment.