History log of /expo/packages/expo-updates/src/__tests__/Updates-test.node.ts (Results 1 – 2 of 2)
Revision Date Author Comments
# 65e04dc2 15-Aug-2020 Eric Samelson <[email protected]>

[expo-updates] fix tests (#9765)

# Why

Tests broke when Updates.expo.ts was deleted in #9694.

# How

- The jest preset preferred .expo files, so when we added Updates.expo.ts in https://gith

[expo-updates] fix tests (#9765)

# Why

Tests broke when Updates.expo.ts was deleted in #9694.

# How

- The jest preset preferred .expo files, so when we added Updates.expo.ts in https://github.com/expo/expo/commit/f03afa4de0bf99c67f41e7478de36d5f42296824#diff-fc594a43e97271ef3e75c8265c55fc9b I had switched the tests to only test this implementation. I reverted the tests back to what they looked like before that commit.
- Also updated the jest mocks to include the new module
- And finally, the tests still failed because of the error thrown when __DEV__ is true. To get around this I assigned __DEV__ to be false for the duration of these tests.

# Test Plan

Tests pass

show more ...


# f9d2fdf3 07-Apr-2020 Evan Bacon <[email protected]>

[expo-updates] Fix SSR support (#7625)

* Fix SSR support

* Fix SSR in expo/updates

* Added node test to updates

* fix build files

* Update packages/expo-updates/src/__tests__/Updates-tes

[expo-updates] Fix SSR support (#7625)

* Fix SSR support

* Fix SSR in expo/updates

* Added node test to updates

* fix build files

* Update packages/expo-updates/src/__tests__/Updates-test.node.ts

Co-Authored-By: James Ide <[email protected]>

Co-authored-by: James Ide <[email protected]>

show more ...