How to use the jest-expo/config.withWatchPlugins function in jest-expo

To help you get started, we’ve selected a few jest-expo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / jest-expo-enzyme / jest-preset.js View on Github external
const { withWatchPlugins } = require('jest-expo/config');
const { withEnzyme } = require('.');

module.exports = withWatchPlugins({
  projects: [
    withEnzyme(require('jest-expo/ios/jest-preset')),
    withEnzyme(require('jest-expo/android/jest-preset')),
    withEnzyme(require('jest-expo/web/jest-preset')),
  ],
});
github expo / expo / packages / expo-module-scripts / jest-preset.js View on Github external
const { withWatchPlugins } = require('jest-expo/config');
const createJestPreset = require('./createJestPreset');
module.exports = withWatchPlugins({
  projects: [
    createJestPreset(require('jest-expo/ios/jest-preset')),
    createJestPreset(require('jest-expo/android/jest-preset')),
    createJestPreset(require('jest-expo/web/jest-preset')),
    createJestPreset(require('jest-expo/node/jest-preset')),
  ],
});

jest-expo

A Jest preset to painlessly test your Expo / React Native apps.

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis

Similar packages