| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- 'use strict';
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- var _jestRegexUtil;
- function _load_jestRegexUtil() {
- return (_jestRegexUtil = require('jest-regex-util'));
- }
- var _constants;
- function _load_constants() {
- return (_constants = require('./constants'));
- }
- const NODE_MODULES_REGEXP = (0,
- (_jestRegexUtil || _load_jestRegexUtil()).replacePathSepForRegex)(
- (_constants || _load_constants()).NODE_MODULES
- );
- /**
- * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- *
- *
- */
- exports.default = {
- automock: false,
- bail: false,
- browser: false,
- cache: true,
- cacheDirectory: '/tmp/user/jest',
- changedFilesWithAncestor: false,
- changedSince: 'master',
- clearMocks: false,
- collectCoverage: true,
- collectCoverageFrom: ['src', '!public'],
- collectCoverageOnlyFrom: {
- '<rootDir>/this-directory-is-covered/Covered.js': true
- },
- coverageDirectory: 'coverage',
- coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
- coverageReporters: ['json', 'text', 'lcov', 'clover'],
- coverageThreshold: {
- global: {
- branches: 50,
- functions: 100,
- lines: 100,
- statements: 100
- }
- },
- displayName: 'project-name',
- errorOnDeprecated: false,
- expand: false,
- filter: '<rootDir>/filter.js',
- forceCoverageMatch: ['**/*.t.js'],
- forceExit: false,
- globalSetup: 'setup.js',
- globalTeardown: 'teardown.js',
- globals: {__DEV__: true},
- haste: {
- defaultPlatform: 'ios',
- hasteImplModulePath: '<rootDir>/haste_impl.js',
- platforms: ['ios', 'android'],
- providesModuleNodeModules: ['react', 'react-native']
- },
- json: false,
- lastCommit: false,
- logHeapUsage: true,
- moduleDirectories: ['node_modules'],
- moduleFileExtensions: ['js', 'json', 'jsx', 'node'],
- moduleLoader: '<rootDir>',
- moduleNameMapper: {
- '^React$': '<rootDir>/node_modules/react'
- },
- modulePathIgnorePatterns: ['<rootDir>/build/'],
- modulePaths: ['/shared/vendor/modules'],
- name: 'string',
- noStackTrace: false,
- notify: false,
- notifyMode: 'always',
- onlyChanged: false,
- preset: 'react-native',
- prettierPath: '<rootDir>/node_modules/prettier',
- projects: ['project-a', 'project-b/'],
- reporters: [
- 'default',
- 'custom-reporter-1',
- ['custom-reporter-2', {configValue: true}]
- ],
- resetMocks: false,
- resetModules: false,
- resolver: '<rootDir>/resolver.js',
- restoreMocks: false,
- rootDir: '/',
- roots: ['<rootDir>'],
- runTestsByPath: false,
- runner: 'jest-runner',
- setupFiles: ['<rootDir>/setup.js'],
- setupTestFrameworkScriptFile: '<rootDir>/testSetupFile.js',
- silent: true,
- skipFilter: false,
- skipNodeResolution: false,
- snapshotSerializers: ['my-serializer-module'],
- testEnvironment: 'jest-environment-jsdom',
- testEnvironmentOptions: {userAgent: 'Agent/007'},
- testFailureExitCode: 1,
- testLocationInResults: false,
- testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
- testNamePattern: 'test signature',
- testPathIgnorePatterns: [NODE_MODULES_REGEXP],
- testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$',
- testResultsProcessor: 'processor-node-module',
- testRunner: 'jasmine2',
- testURL: 'http://localhost',
- timers: 'real',
- transform: {
- '^.+\\.js$': '<rootDir>/preprocessor.js'
- },
- transformIgnorePatterns: [NODE_MODULES_REGEXP],
- unmockedModulePathPatterns: ['mock'],
- updateSnapshot: true,
- useStderr: false,
- verbose: false,
- watch: false,
- watchPathIgnorePatterns: ['<rootDir>/e2e/'],
- watchPlugins: [
- 'path/to/yourWatchPlugin',
- [
- 'jest-watch-typeahead/filename',
- {
- key: 'k',
- prompt: 'do something with my custom prompt'
- }
- ]
- ],
- watchman: true
- };
|