forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jest: Back out
jest-expo
preset, again.
A reversion of c4fca9d, continuing a pattern of adding and removing `jest-expo` as we learn new things: 62621ef jest: Add `jest-expo` preset, to be used in the next commit. 347aa96 jest: Back out `jest-expo` preset, for now. c4fca9d jest: Add and use `jest-expo` preset, again. This time, we learn that `jest-expo` in its current latest version brings in Jest 25, and Jest 25 ends up being used to run our tests instead of Jest 26, which we took in our own direct dependencies, in fb23341. Without backing out `jest-expo`, the next few commits (where we start using Jest's fake timers) would see symptoms like those we saw while working on fb23341, before we realized it was necessary to add @jest/source-map. The new "modern" fake-timer implementation isn't available, and we get no friendly message from Jest to tell us about it [1]. When `jest-expo` comes out with a version that has Jest 26 in its dependencies, we can presumably take that version. [1] In Jest 25, calling `jest.useFakeTimers('modern')` is error-free but has the same effect as `jest.useFakeTimers()`, which, in Jest 26, is a way to spell `jest.useFakeTimers('legacy')`.
- Loading branch information
1 parent
a7f4a1a
commit cfe3314
Showing
6 changed files
with
73 additions
and
1,734 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
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
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
Oops, something went wrong.