Nitrogen Poisonous Monoxide
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bridgepublic


    Bridge

    NPM downloads NPM version License Backers on Open Collective Sponsors on Open Collective Chat Follow on Twitter

    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.


    Discord (bridge channel): https://discord.gg/C9aK28N


    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 here. We also have 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 great 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.

    install

    npm i bridge

    Downloadslast 7 days

    88

    version

    0.2.5

    license

    APACHE-2.0

    last publish

    collaborators

    • avatar
    • avatar
    • avatar