Using React Native, jest, and enzyme, I'm not able to even inspect the value of a shallow rendered component, let alone run a test assertion on it.
Enzyme and jest are working fine for other test files.
There is no log output in my console of any errors occurring.
import React from 'react';
import { shallow } from 'enzyme';
import { SomeComponent } from '../SomeComponent';
describe('SomeComponent', () => {
it('renders', () => {
const props = { name: 'hey' }
const shallowWrap = shallow(<SomeComponent {...props} />);
console.log(shallowWrap) // this wont even log
expect(shallowWrap).toMatchSnapshot();
});
});