问题
I'm really confused, in our project jest isn't showing any stacktrace when an error appears.
Following simple failing test:
test('XXX', () => {
expect(true).toBe(false);
});
Outputs following:
FAIL src/Sulu/Bundle/AdminBundle/Resources/js/containers/Form/tests/stores/XXX.test.js
● XXX
expect(received).toBe(expected) // Object.is equality
Expected value to be:
false
Received:
true
That's everything.. No error line.. Nothing..
We have used following things in our setup:
- Jest
- React
- Babel
- Enzyme
- ...
You can have a look here for more details: https://github.com/sulu/sulu/blob/develop/package.json
Someone can get me a hint here?
Thanks!
来源:https://stackoverflow.com/questions/48900741/jest-doesnt-show-stack-trace