Closed mohammad-goldast closed 5 years ago
Hi @blackhair !
It seems you mistyped describe
instead of it
:
// describe('Login snapShot', () => {
it('Login snapShot', () => {
const LoginSnapShot = renderer.create(<Login />).toJSON();
expect(LoginSnapShot).toMatchSnapshot();
})
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
can this be re-opened, currently experiencing this bug
@jfishy could you show your code sample demonstrating bug?
@vitalets fixed issue by including the following in my package.json file "setupFiles": [ "./testenv.js", "./assets/colors.js" ],
Error was caused by calling StyleSheet.value('$primary1') in code
Hello everyone ! I need to write TDD for my react-native projects. When i run
npm test
, i got an error like this issue title.I need to know, how can i set EStyleSheet variable to jest ! SEE Full ERROR ! File : Login.test.js
File : Login.js