-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change runScript return type to unknown
- Loading branch information
Mikael Lirbank
committed
Feb 27, 2019
1 parent
f45cc88
commit 1f9081a
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd keep this as it was, and move the check into
jest-environment-jsdom
. It's an error from the environments if they don't return{[ScriptTransformer.EVAL_RESULT_VARIABLE]: ModuleWrapper} | null
, and it would be great if the typings told developers that instead of failing at runtime