You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if in my tests I assert using chai objects expect({a:3, b:4, c: [ {a: "b", c: "d"}, {a: "b", c: "d"}]}).to.eql({a:1, b:2});, then I get such log (2) so for nested objects assertion error is cut (the same goes to json output).
Test 1
1) is expected pprod response to equal prod response
Test 2
2) is expected pprod response to equal prod response
0 passing (6s)
2 failing
1)
Test 1
is expected pprod response to equal prod response:
AssertionError: expected { a: 3, b: 4 } to deeply equal { a: 1, b: 2 }
at Context.it (test1/test1.js:23:31)
2)
Test 2
is expected pprod response to equal prod response:
AssertionError: expected { Object (a, b, ...) } to deeply equal { a: 1, b: 2 }
at Context.it (test1/test2.js:22:73)
I would expect getting normal log as when run sequentially:
Stack:
mocha, nodejs, chai (expect)
Mac OS X, Linux (Jenkins)
Code to run tests in parallel programmatically:
Test itself:
For example, if in my tests I assert using chai objects
expect({a:3, b:4, c: [ {a: "b", c: "d"}, {a: "b", c: "d"}]}).to.eql({a:1, b:2});
, then I get such log (2) so for nested objects assertion error is cut (the same goes to json output).I would expect getting normal log as when run sequentially:
Could someone suggest what to do in such case? Thanks in advance.
The text was updated successfully, but these errors were encountered: