diff --git a/packages/e2e/package.json b/packages/e2e/package.json index 55d3aaf75..aff2ea82e 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -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": { diff --git a/packages/e2e/src/TestValidator.ts b/packages/e2e/src/TestValidator.ts index 878dbd5d5..418daf24b 100644 --- a/packages/e2e/src/TestValidator.ts +++ b/packages/e2e/src/TestValidator.ts @@ -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"), ); };