Is there an option to show all test descriptions when I run jest tests?

前端 未结 5 1539
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 01:18

I\'m using jest and enzyme with my create-react-app project. When I run npm test, I get an output that shows the names of the test files that passed but I\'d like t

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 01:41

    I was having the same issue with create-react-app (using both jest and enzyme), but was able to get the tests to appear after appending the existing test script in package.json with --verbose=true. So it now appears "test": "react-scripts test --env=jsdom --verbose=true"

提交回复
热议问题