Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

[WIP] Update React Native to 0.57.4 #1210

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7aa00ad
Update the React Native version, and get types up to date
orta Oct 30, 2018
c732afa
Update native deps
orta Oct 31, 2018
535d359
React Native upgrade for rutime behavior
orta Oct 31, 2018
7c4cb28
WIP on React NAtive upgrade for jest tests
orta Nov 2, 2018
b9511bc
Resolve a version of fsevents that doesn't crash on node 10
orta Nov 13, 2018
1703442
Gets some of the tests to compile
orta Nov 13, 2018
aeffc47
Dep updates
orta Nov 15, 2018
9dbd415
Try updating to RN 0.58
orta Dec 10, 2018
7c3a201
Downgrade rn to 57
zephraph Dec 12, 2018
1894ce5
Update snapshots
zephraph Dec 12, 2018
205b466
Fix react-tracking mock failing
zephraph Dec 12, 2018
712068b
Clean up comments
zephraph Dec 12, 2018
21f30bd
[babel] Strip Flow type annotations before any other transforms.
alloy Feb 21, 2019
8a5046b
[test] Update snapshots with new default values.
alloy Feb 21, 2019
6a35072
[test] Fail on error/warn logs with helpful message.
alloy Feb 21, 2019
a4f82bf
[package] Pin exact RN/React/ReactDOM/Enzyme deps
alloy Feb 21, 2019
8b26f80
[test] Ignore ReactDOM warnings that don’t apply to RN.
alloy Feb 21, 2019
42d1a3a
[test] Fix tests that were logging.
alloy Feb 21, 2019
373c444
[test] A few more snapshot updates after dep updates.
alloy Feb 21, 2019
fac389a
[MockRelayRenderer] Properly name test
alloy Feb 21, 2019
f173ff1
[test] Fix test that was bleeding failing async code into other tests
alloy Feb 21, 2019
666a9eb
[styled-components] Remove usage of deprecated API.
alloy Feb 21, 2019
c0c1b0e
[ci] Make fsevents optional
orta Mar 21, 2019
c179cfd
[tsc] Makes types green
orta Mar 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix react-tracking mock failing
  • Loading branch information
zephraph committed Dec 12, 2018
commit 205b466d04e93d217169c9d5dd350208e530819f
5 changes: 4 additions & 1 deletion src/setupJest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ expect.extend({ toMatchDiffSnapshot: (diff as any).toMatchDiffSnapshot })

// Jest cannot mock a decorator?
//
// jest.mock("react-tracking")
jest.mock("react-tracking")
import _track from "react-tracking"
const track = _track as jest.Mock<typeof _track>
track.mockImplementation(y => x => x)

// Mock this separately so react-tracking can be unmocked in tests but not result in the `window` global being accessed.
jest.mock("react-tracking/build/dispatchTrackingEvent")
Expand Down