0.9.0-dev.13 • Published 5 months ago

jet v0.9.0-dev.13

Weekly downloads
129
License
Apache-2.0
Repository
github
Last release
5 months ago

Jet lets you test your React Native Module APIs in JS mock free and native testing code free - ideal for testing React Native modules e2e.

Features:

  • ⏩ Test with JavaScript - write your native module tests in javascript and fully e2e test them.
  • 💯 Coverage - get full code coverage output for your React Native module's JS API with built in coverage support (--coverage).

image


Latest supported React Native version: ^0.76


Quick Setup

Add the current version of jet as a development dependency using your package manager of choice, for example yarn:

yarn add --dev jet

These docs are still TODO, for now see example, in particular:

Configuring Jet and targets:

Adding the test UI and your tests:

Configuring coverage instrumentation:

Running tests

jet --target=macos

.jetrc.js

Example:

const proc = require('node:child_process');

module.exports = {
  config: {
    // Global config overrides/defaults...
  },
  targets: {
    // Use any key name to specify a new 'target' (--target=<key>)
    // [key: string]: { ... }
    macos: {
      // --target=macos
      config: {
        // Per target config overrides...
        // These will override in order of:
        // ...cliFlags
        // ...globalConfig
        // ...targetConfig
      },
      /**
       * Use this to run builds, start the application etc.
       */
      async before(config) {
        proc.spawnSync('npx', ['react-native', 'run-macos']);
        return config;
      },
      /**
       * Use this for cleanup & teardown.
       */
      async after(config) {
        console.log('After');
      },
    },
  },
};

💛 How can I help?

For now please see the open issues tracking work that needs doing discussions and thoughts on these issues and on Jet will help us mature the project into a useful tool.


😎 Projects using Jet

These projects use Jet to test their modules:

  • React Native Firebase: 🔥 A well tested feature rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for over 15 Firebase services.

Submit a PR to add your project here.

0.9.0-dev.13

5 months ago

0.9.0-dev.9

1 year ago

0.9.0-dev.4

1 year ago

0.9.0-dev.3

1 year ago

0.9.0-dev.2

1 year ago

0.9.0-dev.1

1 year ago

0.9.0-dev.8

1 year ago

0.9.0-dev.7

1 year ago

0.9.0-dev.6

1 year ago

0.9.0-dev.5

1 year ago

0.9.0-dev.12

12 months ago

0.9.0-dev.11

12 months ago

0.9.0-dev.10

12 months ago

0.8.3

2 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.6-0

5 years ago

0.6.5-0

5 years ago

0.6.4-0

5 years ago

0.6.3-0

5 years ago

0.5.0-0

5 years ago

0.6.2-0

5 years ago

0.6.1-0

5 years ago

0.6.0-0

5 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

13 years ago