mentie 0.1.11 → 0.1.12
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/modules/environment.js +2 -1
- package/modules/logging.js +8 -1
- package/package.json +1 -1
package/modules/environment.js
CHANGED
package/modules/logging.js
CHANGED
|
@@ -63,7 +63,14 @@ const annotate_messages = messages => {
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
// If we are running in cypress, stringify the messages because they become unavailable in the console
|
|
66
|
-
if( is_cypress )
|
|
66
|
+
if( is_cypress ) {
|
|
67
|
+
|
|
68
|
+
try {
|
|
69
|
+
messages = messages.map( message => JSON.stringify( message, null, 2 ) )
|
|
70
|
+
} catch {
|
|
71
|
+
// This fails if the JSON was something curcular, se we'll leave things as they are
|
|
72
|
+
}
|
|
73
|
+
}
|
|
67
74
|
|
|
68
75
|
// Annotate the provided messages
|
|
69
76
|
messages = add_trace( messages )
|