Skip to content

Commit

Permalink
TestValidator.equals() to trace more detaily.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Apr 2, 2024
1 parent 76525dc commit 88bf0df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/e2e",
"version": "0.4.2",
"version": "0.4.3",
"description": "E2E test utilify functions",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion packages/e2e/src/TestValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export namespace TestValidator {
const diff: string[] = json_equal_to(exception)(x)(y);
if (diff.length)
throw new Error(
`Bug on ${title}: found different values - [${diff.join(", ")}]`,
[
`Bug on ${title}: found different values - [${diff.join(", ")}]:`,
"\n",
JSON.stringify({ x, y }, null, 2),
].join("\n"),
);
};

Expand Down

0 comments on commit 88bf0df

Please sign in to comment.