Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testEnvironmentOptions for custom environment throw a validation warning #6849

Closed
Hypnosphi opened this issue Aug 15, 2018 · 1 comment Β· Fixed by #6852
Closed

testEnvironmentOptions for custom environment throw a validation warning #6849

Hypnosphi opened this issue Aug 15, 2018 · 1 comment Β· Fixed by #6852

Comments

@Hypnosphi
Copy link

πŸ’₯ Regression Report

Using (jest-environment-enzyme)[https://github.com/FormidableLabs/enzyme-matchers/tree/master/packages/jest-environment-enzyme], I get following warning:

● Validation Warning:

  Unknown option "testEnvironmentOptions.enzymeAdapter" with value "react16" was found.
  This is probably a typing mistake. Fixing it will remove this message.

Last working version

Worked up to version: 23.4.2

Stopped working in version: 23.5.0

To Reproduce

Run Jest with following config:

{
  "setupTestFrameworkScriptFile": "jest-enzyme",
  "testEnvironment": "enzyme",
  "testEnvironmentOptions": {
    "enzymeAdapter": "react16"
  }
}

Expected behavior

No warning

Run npx envinfo --preset jest

Paste the results here:

  System:
    OS: macOS High Sierra 10.13.6
    CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 8.11.2 - ~/.nvm/versions/node/v8.11.2/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 5.6.0 - ~/.nvm/versions/node/v8.11.2/bin/npm
  npmPackages:
    jest: ^23.5.0 => 23.5.0 
thymikee added a commit that referenced this issue Aug 15, 2018
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->

<!-- Please remember to update CHANGELOG.md in the root of the project if you have not done so. -->

## Summary

Fixes #6849
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants