Verbose output in jest js

21,857

Solution 1

To get verbose mode in Jest, you can run Jest with the --verbose tag.

In your packages.json, you can write:

"scripts": {
  "test": "jest --verbose"
 },

Then you can run npm test

Alternatively, if you are using gulp-jest, to get Jest in verbose mode, find the index.js file of the gulp-jest folder in node_modules and add a verbose: true to the jest.runCLI block.

jest.runCLI({
  config: options,
  verbose: true
}

Solution 2

simple add in package.json

{
...
...

 "jest": {
         "verbose": true
 },
...
...
}
Share:
21,857
Admin
Author by

Admin

Updated on July 09, 2022

Comments

  • Admin
    Admin almost 2 years

    is any option for verbore output for testing by jest?

    I can see which modules are mocked.

    I tried

    jasmine.VERBOSE = true;
    

    but not working.

    Thanks for answer.