question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thernstigcommented, Nov 19, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found