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

前端 未结 5 1540
伪装坚强ぢ
伪装坚强ぢ 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:36

    Note that, instead of

    jest --verbose
    

    you can also set verbose to true in jest.config.js:

    // jest.config.js
    module.exports = {
      ...
      verbose: true,
    }
    

提交回复
热议问题