Skip to content

Commit

Permalink
fix(mock): fix missing sdkVersion causing jest fail with react-naviga…
Browse files Browse the repository at this point in the history
  • Loading branch information
kopax committed Feb 11, 2020
1 parent 5d64834 commit 199391b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-expo/src/preset/createMockConstants.js
Expand Up @@ -18,6 +18,7 @@ module.exports = function createMockConstants() {
const mockId = `${mockDeveloper}/${mockSlug}`;
const mockLinkingUri = `exp://exp.host/${mockDeveloper}/${mockSlug}/--/`;
const mockHostUri = `exp.host/${mockDeveloper}/${mockSlug}`;
const mockSdkVersion = expoConfig.sdkVersion || '36';

return {
deviceName: 'Test Phone',
Expand All @@ -28,6 +29,7 @@ module.exports = function createMockConstants() {
slug: mockSlug,
extra: expoConfig.extra,
hostUri: mockHostUri,
sdkVersion: mockSdkVersion,
},
};
};
Expand Down

0 comments on commit 199391b

Please sign in to comment.