This worked for me (Jest 21.2.1, Enzyme 3.2.0): jest.mock('Platform', () => { const Platform = require.requireActual('Platform'); Platform.
確定! 回上一頁