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.

Allow jest-validate to print deprecation warnings for CLI flags

See original GitHub issue

Do you want to request a feature or report a bug? Feature

What is the current behavior? When jest-validate was created in #2524, it came with support for printing deprecation warnings in configuration.

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test. N/A

What is the expected behavior? It would be great if we could also print deprecation warnings for CLI flags in the same way. Currently unknown flags throws (which makes sense to catch typos), but it would be great to alert users of removed (or altered) options in a semver-compliant way.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system. Jest@master

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, Feb 12, 2018

I agree. Separate issue, though

0reactions
github-actions[bot]commented, May 13, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jest-validate | Yarn - Package Manager
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
Read more >
Jest-validate - npm.io
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
Read more >
CLI options deprecation warnings of mysqldump are printed to ...
When some option is deprecated, it is not immediately removed, but you get a warning instead. In some cases, persistent usage of the...
Read more >
How can I get rid of deprecated warnings in ... - Stack Overflow
One way to implement deprecation warnings is to produce warnings on calls to deprecated functions, unless you are calling from a deprecated ...
Read more >
Jest 19: Immersive Watch Mode & Test Platform Improvements ...
We now also error on invalid CLI arguments instead of ignoring them. ... that helps you with warnings, errors and deprecation messages in ......
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