How to use the jest-expo/jest-preset.transform 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 byCedric / use-expo / packages / screen-orientation / jest.config.js View on Github external
/* eslint-disable @typescript-eslint/no-var-requires */
const jestExpoPreset = require('jest-expo/jest-preset');
const { jsWithBabel: tsJestPreset } = require('ts-jest/presets');

module.exports = {
	...jestExpoPreset,
	clearMocks: true,
	transform: {
		...tsJestPreset.transform,
		...jestExpoPreset.transform,
	},
	testMatch: [
		'**/*.test.ts',
	],
};
github byCedric / use-expo / jest.config.js View on Github external
/* eslint-disable @typescript-eslint/no-var-requires */
const jestExpoPreset = require('jest-expo/jest-preset');
const { jsWithBabel: tsJestPreset } = require('ts-jest/presets');

module.exports = {
	...jestExpoPreset,
	clearMocks: true,
	transform: {
		...tsJestPreset.transform,
		...jestExpoPreset.transform,
	},
	testMatch: [
		'/packages/**/*.test.ts',
	],
	modulePathIgnorePatterns: [
		'/example',
	],
};
github byCedric / use-expo / packages / font / jest.config.js View on Github external
/* eslint-disable @typescript-eslint/no-var-requires */
const jestExpoPreset = require('jest-expo/jest-preset');
const { jsWithBabel: tsJestPreset } = require('ts-jest/presets');

module.exports = {
	...jestExpoPreset,
	clearMocks: true,
	transform: {
		...tsJestPreset.transform,
		...jestExpoPreset.transform,
	},
	testMatch: [
		'**/*.test.ts',
	],
};
github byCedric / use-expo / packages / permissions / jest.config.js View on Github external
/* eslint-disable @typescript-eslint/no-var-requires */
const jestExpoPreset = require('jest-expo/jest-preset');
const { jsWithBabel: tsJestPreset } = require('ts-jest/presets');

module.exports = {
	...jestExpoPreset,
	clearMocks: true,
	transform: {
		...tsJestPreset.transform,
		...jestExpoPreset.transform,
	},
	testMatch: [
		'**/*.test.ts',
	],
};
github byCedric / use-expo / packages / sensors / jest.config.js View on Github external
const jestExpoPreset = require('jest-expo/jest-preset');
const { jsWithBabel: tsJestPreset } = require('ts-jest/presets');

module.exports = {
    ...jestExpoPreset,
    clearMocks: true,
    transform: {
		...tsJestPreset.transform,
		...jestExpoPreset.transform,
	},
	testMatch: [
		'**/*.test.ts',
	],
};

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