Docs: verbose's default is "true" and not "false"
See original GitHub issue🐛 Bug Report
When there is no ‘verbose’ property defined in jest.config.js, it defaults to true
and not false
as per https://jestjs.io/docs/en/configuration#verbose-boolean
To Reproduce
Add this code to a project and place a test in the server/ directory:
module.exports = {
testEnvironment: 'node',
rootDir: 'server/',
};
Expected behavior
The test case names should not be displayed in the console.
envinfo
npx: installed 1 in 0.566s
System:
OS: Linux 4.4 Ubuntu 16.04.5 LTS (Xenial Xerus)
CPU: (4) x64 Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz
Binaries:
Node: 12.13.0 - ~/.config/nvm/12.13.0/bin/node
npm: 6.12.0 - ~/.config/nvm/12.13.0/bin/npm
npmPackages:
jest: ^24.9.0 => 24.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
about CommonParameters - PowerShell | Microsoft Learn
Because the default value of the $VerbosePreference variable is SilentlyContinue, verbose messages aren't displayed by default.
Read more >doctest — Test interactive Python examples — Python 3.11.1 ...
Optional argument verbose prints lots of stuff if true, and prints only failures if false; by default, or if None , it's true...
Read more >Documentation: 15: EXPLAIN - PostgreSQL
Parameters. ANALYZE. Carry out the command and show actual run times and other statistics. This parameter defaults to FALSE . VERBOSE.
Read more >Options — Click Documentation (8.1.x)
By default, options are not required, however to make an option required, ... is_flag=True, show_default=True, default=False, help="Greet the world.
Read more >Configuring Jest
Default: false ... Node.js core modules, like fs , are not mocked by default. ... This option requires collectCoverage to be set to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Code: https://github.com/facebook/jest/blob/efb311d5440d40806a73003c252ab0a326cd0fc6/packages/jest-core/src/runJest.ts#L226-L233
@thymikee Yes, edited my last comment suspecting this was the case. I have verified you are correct. Maybe a small doc update would highlight this, let me see if I can get time to send a MR soon.