File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 132
132
"node" : " >=0.10"
133
133
},
134
134
"dependencies" : {
135
- "assertion-error-formatter" : " ^2.0.0 " ,
135
+ "assertion-error-formatter" : " ^2.0.1 " ,
136
136
"babel-runtime" : " ^6.11.6" ,
137
137
"bluebird" : " ^3.4.1" ,
138
138
"cli-table" : " ^0.3.1" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Formatter from './'
3
3
import Status from '../status'
4
4
import { formatLocation , GherkinDocumentParser , PickleParser } from './helpers'
5
5
import { buildStepArgumentIterator } from '../step_arguments'
6
+ import { format } from 'assertion-error-formatter'
6
7
7
8
const {
8
9
getStepLineToKeywordMap,
@@ -156,7 +157,7 @@ export default class JsonFormatter extends Formatter {
156
157
data . result . duration = testStep . result . duration
157
158
}
158
159
if ( status === Status . FAILED && exception ) {
159
- data . result . error_message = exception . stack || exception
160
+ data . result . error_message = format ( exception )
160
161
}
161
162
}
162
163
if ( _ . size ( testStep . attachments ) > 0 ) {
Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ assert@^1.4.0:
193
193
dependencies :
194
194
util "0.10.3"
195
195
196
- assertion-error-formatter@^2.0.0 :
197
- version "2.0.0 "
198
- resolved "https://registry.yarnpkg.com/assertion-error-formatter/-/assertion-error-formatter-2.0.0 .tgz#17a24289cc8440889b54318e6d1187ebee2d5494 "
196
+ assertion-error-formatter@^2.0.1 :
197
+ version "2.0.1 "
198
+ resolved "https://registry.yarnpkg.com/assertion-error-formatter/-/assertion-error-formatter-2.0.1 .tgz#6bbdffaec8e2fa9e2b0eb158bfe353132d7c0a9b "
199
199
dependencies :
200
200
diff "^3.0.0"
201
201
pad-right "^0.2.2"
You can’t perform that action at this time.
0 commit comments