@teamkeel/testing-runtime 0.247.3 → 0.249.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ActionExecutor.mjs +6 -0
package/package.json
CHANGED
package/src/ActionExecutor.mjs
CHANGED
|
@@ -67,6 +67,12 @@ export class ActionExecutor {
|
|
|
67
67
|
throw new Error(t);
|
|
68
68
|
}
|
|
69
69
|
// Otherwise throw the parsed JSON error response
|
|
70
|
+
// We override toString as otherwise you get expect errors like:
|
|
71
|
+
// `expected to resolve but rejected with "[object Object]"`
|
|
72
|
+
Object.defineProperty(d, "toString", {
|
|
73
|
+
value: () => t,
|
|
74
|
+
enumerable: false,
|
|
75
|
+
});
|
|
70
76
|
throw d;
|
|
71
77
|
});
|
|
72
78
|
}
|