} = require('react-test-renderer');
//...
describe('Ticket events GraphQL testing', () => {
it('gets events', async () => {
const component = create(
<MockedProvider mocks={[GET_MATCHES_LIST]} addTypename={false}>
<TicketEvents />
</MockedProvider>
);
await wait(0);
expect(component).toBe({});
});
});
Почему component null?
https://gist.github.com/daydarkln/a71797d46835aa04afca2d1f7998fc76
gist.github.com
Обсуждают сегодня