Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: Upgrade jest to 26.1.0, the latest.
Also, add @jest/source-map, without which some chain of dependencies doesn't go the right way, and the "modern" fake-timer implementation isn't available. (That landed in jestjs/jest#7776 with jestjs/jest@71631f6bf.) The libdef process was fairly smooth: there was one available from FlowTyped, so I ran `flow-typed install jest@26`. Add a line in our Flow config under [libs] as suggested in chat [1]; otherwise, Flow sees a Jest libdef in `node_modules/react-native` and uses that instead. In an upcoming commit, we'll add a few methods on the Jest object that didn't make it into the libdef in FlowTyped for whatever reason. Run `yarn yarn-deduplicate && yarn` as prompted by `tools/test deps`. [1] https://chat.zulip.org/#narrow/stream/48-mobile/topic/flow-typed.20for.20Jest/near/854562
- Loading branch information