You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import const { defaults } = require('jest-config'); in a config
Export defaults
Validate the config via jest validate by running yarn jest on something
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.
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.
💥 Regression Report
jest-config
in Jest 24 warn oncwd
that was addedLast working version
Worked up to version: 23.6.0
Stopped working in version: 24.0.0
To Reproduce
Steps to reproduce the behavior:
const { defaults } = require('jest-config');
in a configdefaults
yarn jest
on somethingExpected 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:
The text was updated successfully, but these errors were encountered: