Guys, do you have any update regarding this request?
I'm facing the same issue.
If I use t.is(resetBehaviour.calledOnce, false);
it outputs this:
51: wrapper.unmount();
52: t.is(resetBehaviour.calledOnce, false);
53: });
Difference:
- true
+ false
Test.is (src/common/components/App/App.test.js:52:7)
processEmit [as emit] (node_modules/nyc/node_modules/signal-exit/index.js:155:32)
processEmit [as emit] (node_modules/nyc/node_modules/signal-exit/index.js:155:32)
But if i use t.false(resetBehaviour.calledOnce)
it returns this huge output:
51: wrapper.unmount();
52: t.false(resetBehaviour.calledOnce);
53: });
Value is not `false`:
true
resetBehaviour.calledOnce
=> true
resetBehaviour
=> Function proxy {
args: [
[],
],
callCount: 1,
callIds: [
4,
],
called: true,
calledOnce: true,
calledThrice: false,
calledTwice: false,
displayName: 'spy',
errorsWithCallStack: [
Error {
message: '',
},
],
exceptions: [
undefined,
],
firstCall: {
args: [],
callId: 4,
callback: undefined,
errorWithCallStack: Error {
message: '',
},
exception: undefined,
lastArg: undefined,
proxy: [Circular],
returnValue: undefined,
thisValue: {
resetBehaviour: [Circular],
},
},
id: 'spy#3',
instantiateFake: Function create {},
isSinonProxy: true,
lastCall: {
args: [],
callId: 4,
callback: undefined,
errorWithCallStack: Error {
message: '',
},
exception: undefined,
lastArg: undefined,
proxy: [Circular],
returnValue: undefined,
thisValue: {
resetBehaviour: [Circular],
},
},
notCalled: false,
returnValues: [
undefined,
],
secondCall: null,
thirdCall: null,
thisValues: [
{
resetBehaviour: [Circular],
},
],
toString: Function toString {},
}
Test.t [as fn] (src/common/components/App/App.test.js:52:5)
processEmit [as emit] (node_modules/nyc/node_modules/signal-exit/index.js:155:32)
processEmit [as emit] (node_modules/nyc/node_modules/signal-exit/index.js:155:32)
I'm using sinon spies and the log output is completely uselesss in this case.