@dowser/react-native
v0.10.0
Published
React Native runtime and Expo plugin for the dowser real-device test runner.
Downloads
890
Readme
@dowser/react-native
React Native runtime and Expo plugin for the dowser real-device test runner. Mounts on the device's JS engine, provides a @testing-library/react-native-shaped surface (render, screen, userEvent, waitFor, screenshot), and connects back to the host CLI over WebSocket.
Install
yarn add -D @dowser/react-native @dowser/cliUsage
// app.config.ts
export default {
plugins: [['@dowser/react-native/app.plugin.js', {host: '127.0.0.1', port: 9876}]],
};// index.js
import {registerRootComponent} from 'expo';
import {withDowser} from '@dowser/react-native';
import App from './App';
registerRootComponent(
withDowser(App, {
specs: require.context('./__dowser_tests__', true, /\.dowser-spec\.tsx?$/),
}),
);See https://github.com/getdowser/dowser for the full guide.
