menu

Testing Library

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

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# General Help
view-forward
# Angular Help
view-forward
# Cypress Help
view-forward
# DOM Help
view-forward
# React Help
view-forward
# TestCafe Help
view-forward
# Vue Help
view-forward
Team
Posts
Members
Info

Trying to get Snackbar in render output.

Hey, I am trying to access Snackbar action within the test render object, I am using react-native-testing-library. I cannot get the object, it results in "No instances found" whatever I try, getByText, getByt A11Label, nothing seems to work. Did anyone have a similia problem? Am…

thumbsup
1
message-simple
22

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