python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
I can't render @react-navigation's NavigationContainer in tests using react native testing library
When I try to test my entire application, I'm receiving this error (full log at the end):
Screen(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render...
Luiz Rodrigues
Votes: 0
Answers: 0
Unable to test combination of useEffect and setTimeout using Jest
Trying to assert a simple state change made using useEffect and setTimeout. The effect calls setTimeout with a value of 1500ms which should change the displayed string from 'unchanged' to 'changed'.
c...
amsub24
Votes: 0
Answers: 0
SyntaxError: Unexpected token ',' --- error-guard.js
jest config is package json
"jest": { "preset": "react-native", "setupFiles": [ "<rootDir>/jestSetup.js" ], "collectC...
Alpar Bartok
Votes: 0
Answers: 1
how can I test when I press a button to action a navigate function?
I want to test my profile page. How can I test it when I press a button and navigate it with test?
I get this error:
TypeError: Cannot read properties of undefined (reading 'onPress')
if(!data) {
...
universe11
Votes: 0
Answers: 0