Jest doesn't show stack trace

大兔子大兔子 提交于 2021-02-08 15:15:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!