UNPKG

690 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10'use strict';
11
12module.exports = {
13 haste: {
14 defaultPlatform: 'ios',
15 platforms: ['android', 'ios', 'native'],
16 },
17 transform: {
18 '^.+\\.(js|ts|tsx)$': 'babel-jest',
19 '^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$': require.resolve(
20 './jest/assetFileTransformer.js',
21 ),
22 },
23 transformIgnorePatterns: [
24 'node_modules/(?!(jest-)?react-native|@react-native-community)',
25 ],
26 setupFiles: [require.resolve('./jest/setup.js')],
27 testEnvironment: 'node',
28};