menu

Testing Library

Simple and complete DOM testing utilities that encourage good testing practices.

Channels
Team
Posts
Members
Info

Attempting to mock Opentok

Has anyone mocked opentok-react-native before?

thumbsup
0
message-simple
0

Need help mocking opentok-react-native

thumbsup
0
message-simple
0

fireEvent.press, fireEvent arguments -> undefined

does testing-library not dispatch "real" events, or something like that? jest, react-native expo, react-router-native leads to TypeError: Cannot read property 'defaultPrevented' of undefined (this is a react-router error) …

thumbsup
0
message-simple
0

You must wrap your Subscribe component with a Provider

Hi all I have the following component that I'm trying to test. loading-screen.js loading-screen.test.js …

thumbsup
0
message-simple
0

Code Review of a Test: Testing a TextInput component

I have the following component: I would like to test the onChangeText which right now is not specifically passed to the component except than under ...props, however I see it being used on its parent component. In my test, I'm getting confused on how best to test both that the…

thumbsup
0
message-simple
3

Need help fixing some tests. My head is a bit fried. If some one could help

So I have the following component, that I need to complete tests for, but my head is a bit fried at the moment. If someone could give me a hint. I'm using @testing-library/jest-native/extend-expect and native-testing-library. Thanks button.test.js

thumbsup
0
message-simple
8

Setting up iOS

I looked in my node_modules/react-native folder and didn't see an iOS folder. Is that right?

thumbsup
0
message-simple
0