Skip to content

Salakar/bridge

Repository files navigation


Bridge

NPM downloads NPM version License Follow on Twitter


Bridge has moved to invertase/jet and is in the process of being reworked. This repo will remain here as a reference for anyone currently using Bridge/Jet as is.


Bridge lets you bring your React Native JS code into Nodejs and test it mock free and native testing code free. Perfect for React Native module developers who want to fully test their packages end-to-end and setup continuous integration services (including coverage 💯).

Bridge extends upon wix/detox and by default the Mocha testing framework (we'd also like to add Jest support).

Detox provides all the functionality you'll need to control your testing app, device and it's UI (if you have one) whilst Bridge allows JS code execution in the context of your RN app - giving you full access to all the Native api's exactly like you'd have inside your app.


Documentation

Sorry the docs are still to be written up - but an idea of what you can do with it can been seen in the early bridge testing suite I made here. There's also this example testing project.

The alpha is available on the next tag:

npm i bridge@next

How can I help?

For now please see the open issues tracking work that needs doing. Full contributing docs will be written.

Previews

The below previews are from this example testing project and are running a small batch of Mocha tests for react-native-firebase inside Nodejs:

iOS

ios


Android

android

Projects using Bridge

These projects use Bridge to test their modules:

  • React Native Firebase: A well tested feature rich Firebase implementation for React Native, supporting both iOS & Android platforms for 12+ Firebase modules (including a feature rich Notifications implementation) 🔥

Submit a PR to add your project here.