Detailed output in jest js

- any option to display verbal data for testing by jokes?

I see which modules are mocking.

I tried

jasmine.VERBOSE = true; 

but does not work.

Thanks for the answer.

+13
unit-testing jasmine jestjs
source share
3 answers

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

In packages.json you can write:

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

Then you can run npm test

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

 jest.runCLI({ config: options, verbose: true } 
+33
source share

just add to package.json

 { ... ... "jest": { "verbose": true }, ... ... } 
+9
source share

Note that if you change your package.json, as Denis recommends, you can no longer use debug () for HTML representations of shells in the terminal unless you turn it back to false or delete the line completely.

0
source share

All Articles