Skip to content

Commit

Permalink
Patch cavy with proper failure descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanlaerhoven committed Nov 19, 2024
1 parent 2c8aa0a commit 976ab8f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions e2e/patches/cavy+4.0.2.patch
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ index 1cdeb38..f7e9e35 100644
// Private: Determines whether data can be sent over the websocket.
websocketReady() {
// WebSocket.readyState 1 means the web socket connection is OPEN.
diff --git a/node_modules/cavy/src/TestRunner.js b/node_modules/cavy/src/TestRunner.js
index 40552bf..5b98f72 100644
--- a/node_modules/cavy/src/TestRunner.js
+++ b/node_modules/cavy/src/TestRunner.js
@@ -148,7 +148,7 @@ export default class TestRunner {
const stop = new Date();
const time = (stop - start) / 1000;

- let fullErrorMessage = `${description} ❌\n ${e.message}`;
+ let fullErrorMessage = `${description} ❌\n ${JSON.stringify(e)}`;
console.warn(fullErrorMessage);

this.results.push({
diff --git a/node_modules/cavy/src/Tester.js b/node_modules/cavy/src/Tester.js
index c61e31a..8d222ae 100644
--- a/node_modules/cavy/src/Tester.js
Expand Down

0 comments on commit 976ab8f

Please sign in to comment.