Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
250
Merge Requests
14
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
db62b797
Commit
db62b797
authored
40 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Download
(fix) update app test suite
parent
2e3a8bfa
new-drawer-update-0_61
1 merge request
!399
New drawer menu for mobile
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletion
+41
-1
__tests__/App.js
View file @
db62b797
...
...
@@ -24,9 +24,49 @@ jest.mock('web3');
//mock notifications
jest
.
mock
(
'
react-native-notifications
'
);
jest
.
mock
(
'
react-native-convert-ph-asset
'
);
jest
.
mock
(
'
react-navigation
'
);
jest
.
mock
(
'
react-navigation
'
,
()
=>
{
return
{
createAppContainer
:
jest
.
fn
()
.
mockReturnValue
(
function
NavigationContainer
(
props
)
{
return
null
;
}),
createDrawerNavigator
:
jest
.
fn
().
mockImplementation
(
nav
=>
{
return
{};
}),
createMaterialTopTabNavigator
:
jest
.
fn
(),
createStackNavigator
:
jest
.
fn
().
mockImplementation
(
nav
=>
{
return
{};
}),
createSwitchNavigator
:
jest
.
fn
().
mockImplementation
(
nav
=>
{
return
{};
}),
createBottomTabNavigator
:
jest
.
fn
(),
withNavigation
:
jest
.
fn
().
mockImplementation
(
component
=>
component
),
StackActions
:
{
push
:
jest
.
fn
()
.
mockImplementation
(
x
=>
({
...
x
,
type
:
'
Navigation/PUSH
'
})),
replace
:
jest
.
fn
()
.
mockImplementation
(
x
=>
({
...
x
,
type
:
'
Navigation/REPLACE
'
})),
},
NavigationActions
:
{
navigate
:
jest
.
fn
().
mockImplementation
(
x
=>
x
),
},
ThemeColors
:
{
light
:
{
bodyContent
:
''
,
},
dark
:
{
bodyContent
:
''
,
},
},
};
});
jest
.
mock
(
'
react-navigation-tabs
'
);
jest
.
mock
(
'
react-navigation-stack
'
);
jest
.
mock
(
'
react-navigation-drawer
'
);
//mock i18n
jest
.
mock
(
'
react-native-video
'
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment