Jest: Invalid validation warning for "setupTestFrameworkScriptFile"

Created on 1 Dec 2017  ·  5Comments  ·  Source: facebook/jest

Using jest 21.3.0-beta.11, I'm getting a warning:

● Validation Warning:

  Unknown option "setupTestFrameworkScriptFile" with value "<rootDir>/setup-tests.js" was found.
  This is probably a typing mistake. Fixing it will remove this message.

  Configuration Documentation:
  https://facebook.github.io/jest/docs/configuration.html

But this option doesn't seem invalid or deprecated (and it's still working in my tests).

good first issue

Most helpful comment

cc @mjesun can you fix this today pls? :)

All 5 comments

It was accidentally deleted from validation in https://github.com/facebook/jest/pull/4976. Our CI confirms your warning (but who looks at CI output, when it's green?).
Would you like to bring it back? It's adding back this line:
https://github.com/facebook/jest/pull/4976/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L130 🙂

@thymikee what's going on here? Seeing as #4995 got closed

We only need one hook in our package.json. The issue is about validation. Jest-validate needs a reference for valid config. The issue is that scriptFile was accidentally removed from the valid config example, hence the warning

cc @mjesun can you fix this today pls? :)

Fixed.

Was this page helpful?
0 / 5 - 0 ratings