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

jest-validate complains about cwd in Jest 24 with jest-config for defaults #7741

Closed
Aghassi opened this issue Jan 29, 2019 · 1 comment · Fixed by #7742
Closed

jest-validate complains about cwd in Jest 24 with jest-config for defaults #7741

Aghassi opened this issue Jan 29, 2019 · 1 comment · Fixed by #7742

Comments

@Aghassi
Copy link
Contributor

Aghassi commented Jan 29, 2019

💥 Regression Report

jest-config in Jest 24 warn on cwd that was added

Last working version

Worked up to version: 23.6.0

Stopped working in version: 24.0.0

To Reproduce

Steps to reproduce the behavior:

  1. Import const { defaults } = require('jest-config'); in a config
  2. Export defaults
  3. Validate the config via jest validate by running yarn jest on something
  4. See the following error
● Validation Warning:

  Unknown option "cwd" with value "/Users/daghassi/git/infra-scripts" was found.
  This is probably a typing mistake. Fixing it will remove this message.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

Expected behavior

I don't get warned 😄

Link to repl or repo (highly encouraged)

Please provide either a repl.it demo or a minimal repository on GitHub.

Issues without a reproduction link are likely to stall.

Run npx envinfo --preset jest

Paste the results here:

npx: installed 1 in 3.903s

  System:
    OS: macOS 10.14.3
    CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
  Binaries:
    Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.5.0 - ~/git/infra-scripts/node_modules/.bin/npm
  npmPackages:
    jest: 24.0.0 => 24.0.0
@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.

1 participant