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.

`deprecationEntries` should be injected from `jest-validate` from `jest-config`.

See original GitHub issue

Do you want to request a feature or report a bug? I guess it’d be a feature.

What is the current behavior? jest-validate requires jest-config to get the deprecationEntries function. This means consumers of jest-validate also have to install all the dependencies of jest-config, such as jest-environment-jsdom.

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.

What is the expected behavior? jest-validate should contain deprecationEntries.

Please provide your exact Jest configuration

Run npx envinfo --preset jest in your project directory and paste the results here

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, Apr 3, 2018

jest-validate should definitely be able to drop the jest-config dependency. PR very much welcome for this 🙂 I agree with @thymikee that it should be injected as a separate argument instead of living inside jest-validate.

0reactions
github-actions[bot]commented, May 12, 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

Configuring Jest
Keep in mind that the resulting configuration object must always be JSON-serializable. The configuration file should simply export an object: JavaScript ...
Read more >
Troubleshooting | jest-preset-angular - GitHub Pages
By default, Jest doesn't transform node_modules , because they should be valid JavaScript files. However, it happens that library authors ...
Read more >
jest-html-reporter - npm
Configure Jest to process the test results by adding the following entry to the Jest config (jest.config.json):.
Read more >
Mocking a JavaScript Class with Jest, two ways to make it easier
Jest mock functions can also mock constructors and inject return values for mocked functions for the scope of the test. If you want...
Read more >
How I do configure Jest to test my Angular 8 Project - ITNEXT
By Angular CLI defaults you'll have a src/test.ts file which will be picked up by jest. To circumvent this you can either rename...
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