remove disableAutomock from jest tests (new default) @bypass-lint

Reviewed By: cpojer

Differential Revision: D5237192

fbshipit-source-id: dccca52a91259d7fea27931f92bca94184a82d4a
This commit is contained in:
James Burnett 2017-06-13 15:01:42 -07:00 committed by Facebook Github Bot
parent 7707905550
commit 51c0e81557
86 changed files with 52 additions and 200 deletions

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var Animated = require('Animated'); var Animated = require('Animated');
describe('Animated tests', () => { describe('Animated tests', () => {
beforeEach(() => { beforeEach(() => {

View File

@ -9,7 +9,6 @@
'use strict'; 'use strict';
jest jest
.disableAutomock()
.setMock('Text', {}) .setMock('Text', {})
.setMock('View', {}) .setMock('View', {})
.setMock('Image', {}) .setMock('Image', {})

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var Easing = require('Easing'); var Easing = require('Easing');
describe('Easing', () => { describe('Easing', () => {
it('should work with linear', () => { it('should work with linear', () => {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var Interpolation = require('Interpolation'); var Interpolation = require('Interpolation');
var Easing = require('Easing'); var Easing = require('Easing');

View File

@ -10,7 +10,6 @@
'use strict'; 'use strict';
jest.disableAutomock();
var bezier = require('bezier'); var bezier = require('bezier');
var identity = function (x) { return x; }; var identity = function (x) { return x; };

View File

@ -9,9 +9,6 @@
*/ */
'use strict'; 'use strict';
// const MessageQueueTestConfig = require('MessageQueueTestConfig');
jest.disableAutomock();
let MessageQueue; let MessageQueue;
let MessageQueueTestModule; let MessageQueueTestModule;
let queue; let queue;

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const React = require('React'); const React = require('React');
const ReactTestRenderer = require('react-test-renderer'); const ReactTestRenderer = require('react-test-renderer');
const Text = require('Text'); const Text = require('Text');

View File

@ -9,8 +9,6 @@
'use strict'; 'use strict';
jest.disableAutomock();
var parseErrorStack = require('parseErrorStack'); var parseErrorStack = require('parseErrorStack');
function getFakeError() { function getFakeError() {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var AssetRegistry = require('AssetRegistry'); var AssetRegistry = require('AssetRegistry');
var Platform = require('Platform'); var Platform = require('Platform');
var NativeModules = require('NativeModules'); var NativeModules = require('NativeModules');

View File

@ -11,7 +11,6 @@
'use strict'; 'use strict';
jest jest
.disableAutomock()
.mock('ErrorUtils') .mock('ErrorUtils')
.mock('BatchedBridge'); .mock('BatchedBridge');

View File

@ -11,7 +11,6 @@
'use strict'; 'use strict';
jest jest
.disableAutomock()
.mock('ErrorUtils') .mock('ErrorUtils')
.mock('BatchedBridge'); .mock('BatchedBridge');

View File

@ -10,8 +10,6 @@
'use strict'; 'use strict';
jest.disableAutomock();
function expectToBeCalledOnce(fn) { function expectToBeCalledOnce(fn) {
expect(fn.mock.calls.length).toBe(1); expect(fn.mock.calls.length).toBe(1);
} }

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const FillRateHelper = require('FillRateHelper'); const FillRateHelper = require('FillRateHelper');
let rowFramesGlobal; let rowFramesGlobal;

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const React = require('React'); const React = require('React');
const ReactTestRenderer = require('react-test-renderer'); const ReactTestRenderer = require('react-test-renderer');

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const React = require('React'); const React = require('React');
const ReactTestRenderer = require('react-test-renderer'); const ReactTestRenderer = require('react-test-renderer');

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const ViewabilityHelper = require('ViewabilityHelper'); const ViewabilityHelper = require('ViewabilityHelper');
let rowFrames; let rowFrames;

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const {elementsThatOverlapOffsets, newRangeCount} = require('VirtualizeUtils'); const {elementsThatOverlapOffsets, newRangeCount} = require('VirtualizeUtils');
describe('newRangeCount', function() { describe('newRangeCount', function() {

View File

@ -11,8 +11,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const React = require('React'); const React = require('React');
const ReactTestRenderer = require('react-test-renderer'); const ReactTestRenderer = require('react-test-renderer');

View File

@ -9,8 +9,6 @@
'use strict'; 'use strict';
jest.disableAutomock();
const FormData = require('FormData'); const FormData = require('FormData');
describe('FormData', function() { describe('FormData', function() {

View File

@ -20,7 +20,6 @@ function setRequestId(id){
} }
jest jest
.disableAutomock()
.dontMock('event-target-shim') .dontMock('event-target-shim')
.setMock('NativeModules', { .setMock('NativeModules', {
Networking: { Networking: {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var flattenStyle = require('flattenStyle'); var flattenStyle = require('flattenStyle');
describe('flattenStyle', () => { describe('flattenStyle', () => {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var normalizeColor = require('normalizeColor'); var normalizeColor = require('normalizeColor');
describe('normalizeColor', function() { describe('normalizeColor', function() {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const {OS} = require('Platform'); const {OS} = require('Platform');
const processColor = require('processColor'); const processColor = require('processColor');

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const processTransform = require('processTransform'); const processTransform = require('processTransform');
describe('processTransform', () => { describe('processTransform', () => {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var setNormalizedColorAlpha = require('setNormalizedColorAlpha'); var setNormalizedColorAlpha = require('setNormalizedColorAlpha');
var normalizeColor = require('normalizeColor'); var normalizeColor = require('normalizeColor');

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var MatrixMath = require('MatrixMath'); var MatrixMath = require('MatrixMath');
function degreesToRadians(degrees) { function degreesToRadians(degrees) {

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var PlatformIOS = require('../Platform.ios'); var PlatformIOS = require('../Platform.ios');
var PlatformAndroid = require('../Platform.android'); var PlatformAndroid = require('../Platform.android');

View File

@ -9,8 +9,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const SceneTracker = require('SceneTracker'); const SceneTracker = require('SceneTracker');
describe('setActiveScene', function() { describe('setActiveScene', function() {

View File

@ -9,8 +9,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var buildStyleInterpolator = require('buildStyleInterpolator'); var buildStyleInterpolator = require('buildStyleInterpolator');
var validateEmpty = function(interpolator, value, validator) { var validateEmpty = function(interpolator, value, validator) {

View File

@ -7,7 +7,6 @@
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
* *
*/ */
jest.disableAutomock();
var deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationInDev'); var deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationInDev');
describe('deepFreezeAndThrowOnMutationInDev', function() { describe('deepFreezeAndThrowOnMutationInDev', function() {

View File

@ -9,8 +9,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
describe('groupByEveryN', () => { describe('groupByEveryN', () => {
var groupByEveryN = require('groupByEveryN'); var groupByEveryN = require('groupByEveryN');

View File

@ -8,8 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
describe('mapWithSeparator', () => { describe('mapWithSeparator', () => {
const mapWithSeparator = require('mapWithSeparator'); const mapWithSeparator = require('mapWithSeparator');

View File

@ -9,8 +9,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
describe('truncate', () => { describe('truncate', () => {
var truncate = require('truncate'); var truncate = require('truncate');

View File

@ -7,13 +7,11 @@
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
'use strict'; 'use strict';
jest.disableAutomock(); const {encode} = require('../utf8');
const {encode} = require('../utf8'); describe('UTF-8 encoding:', () => {
describe('UTF-8 encoding:', () => {
it('can encode code points < U+80', () => { it('can encode code points < U+80', () => {
const arrayBuffer = encode('\u0000abcDEF\u007f'); const arrayBuffer = encode('\u0000abcDEF\u007f');
expect(new Uint8Array(arrayBuffer)).toEqual( expect(new Uint8Array(arrayBuffer)).toEqual(
@ -60,4 +58,4 @@
expect(new Uint8Array(arrayBuffer)).toEqual( expect(new Uint8Array(arrayBuffer)).toEqual(
new Uint8Array([0x61, 0xed, 0xb8, 0x99, 0x62])); new Uint8Array([0x61, 0xed, 0xb8, 0x99, 0x62]));
}); });
}); });

View File

@ -8,7 +8,6 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
var deepDiffer = require('deepDiffer'); var deepDiffer = require('deepDiffer');
describe('deepDiffer', function() { describe('deepDiffer', function() {

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock() jest
.dontMock('../filterPlatformAssetScales') .dontMock('../filterPlatformAssetScales')
.dontMock('../assetPathUtils'); .dontMock('../assetPathUtils');

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock() jest
.dontMock('../getAssetDestPathAndroid') .dontMock('../getAssetDestPathAndroid')
.dontMock('../assetPathUtils'); .dontMock('../assetPathUtils');

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock().dontMock('../getAssetDestPathIOS'); jest.dontMock('../getAssetDestPathIOS');
const getAssetDestPathIOS = require('../getAssetDestPathIOS'); const getAssetDestPathIOS = require('../getAssetDestPathIOS');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const findAndroidAppFolder = require('../../android/findAndroidAppFolder'); const findAndroidAppFolder = require('../../android/findAndroidAppFolder');
const mockFS = require('mock-fs'); const mockFS = require('mock-fs');
const mocks = require('../../__fixtures__/android'); const mocks = require('../../__fixtures__/android');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const findManifest = require('../../android/findManifest'); const findManifest = require('../../android/findManifest');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const findPackageClassName = require('../../android/findPackageClassName'); const findPackageClassName = require('../../android/findPackageClassName');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const getDependencyConfig = require('../../android').dependencyConfig; const getDependencyConfig = require('../../android').dependencyConfig;

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const getProjectConfig = require('../../android').projectConfig; const getProjectConfig = require('../../android').projectConfig;

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const findManifest = require('../../android/findManifest'); const findManifest = require('../../android/findManifest');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const findAssets = require('../findAssets'); const findAssets = require('../findAssets');
const dependencies = require('../__fixtures__/dependencies'); const dependencies = require('../__fixtures__/dependencies');
const mockFs = require('mock-fs'); const mockFs = require('mock-fs');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const findPlugins = require('../findPlugins'); const findPlugins = require('../findPlugins');
const path = require('path'); const path = require('path');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const findProject = require('../../ios/findProject'); const findProject = require('../../ios/findProject');

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
require('../../__fixtures__/mockFSWorkaround'); require('../../__fixtures__/mockFSWorkaround');
const getProjectConfig = require('../../ios').projectConfig; const getProjectConfig = require('../../ios').projectConfig;

View File

@ -11,8 +11,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
let spawnError = false; let spawnError = false;
jest.setMock('child_process', { jest.setMock('child_process', {

View File

@ -9,8 +9,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const applyParams = require('../../android/patches/applyParams'); const applyParams = require('../../android/patches/applyParams');
describe('applyParams', () => { describe('applyParams', () => {

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const path = require('path'); const path = require('path');
const isInstalled = require('../../android/isInstalled'); const isInstalled = require('../../android/isInstalled');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const makeBuildPatch = require('../../android/patches/makeBuildPatch'); const makeBuildPatch = require('../../android/patches/makeBuildPatch');
const name = 'test'; const name = 'test';

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const makeImportPatch = require('../../android/patches/makeImportPatch'); const makeImportPatch = require('../../android/patches/makeImportPatch');
const packageImportPath = 'import some.example.project'; const packageImportPath = 'import some.example.project';

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const makePackagePatch = require('../../android/patches/makePackagePatch'); const makePackagePatch = require('../../android/patches/makePackagePatch');
const applyParams = require('../../android/patches/applyParams'); const applyParams = require('../../android/patches/applyParams');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const path = require('path'); const path = require('path');
const makeSettingsPatch = require('../../android/patches/makeSettingsPatch'); const makeSettingsPatch = require('../../android/patches/makeSettingsPatch');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const makeStringsPatch = require('../../android/patches/makeStringsPatch'); const makeStringsPatch = require('../../android/patches/makeStringsPatch');
describe('makeStringsPatch', () => { describe('makeStringsPatch', () => {

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const getDependencyConfig = require('../getDependencyConfig'); const getDependencyConfig = require('../getDependencyConfig');
const sinon = require('sinon'); const sinon = require('sinon');

View File

@ -9,8 +9,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const getProjectDependencies = require('../getProjectDependencies'); const getProjectDependencies = require('../getProjectDependencies');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const groupFilesByType = require('../groupFilesByType'); const groupFilesByType = require('../groupFilesByType');
describe('groupFilesByType', () => { describe('groupFilesByType', () => {

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const addFileToProject = require('../../ios/addFileToProject'); const addFileToProject = require('../../ios/addFileToProject');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const PbxFile = require('xcode/lib/pbxFile'); const PbxFile = require('xcode/lib/pbxFile');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const addSharedLibraries = require('../../ios/addSharedLibraries'); const addSharedLibraries = require('../../ios/addSharedLibraries');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const createGroup = require('../../ios/createGroup'); const createGroup = require('../../ios/createGroup');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const getBuildProperty = require('../../ios/getBuildProperty'); const getBuildProperty = require('../../ios/getBuildProperty');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const getGroup = require('../../ios/getGroup'); const getGroup = require('../../ios/getGroup');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const getHeaderSearchPath = require('../../ios/getHeaderSearchPath'); const getHeaderSearchPath = require('../../ios/getHeaderSearchPath');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const getHeadersInFolder = require('../../ios/getHeadersInFolder'); const getHeadersInFolder = require('../../ios/getHeadersInFolder');
describe('ios::getHeadersInFolder', () => { describe('ios::getHeadersInFolder', () => {

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const getPlist = require('../../ios/getPlist'); const getPlist = require('../../ios/getPlist');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const getPlistPath = require('../../ios/getPlistPath'); const getPlistPath = require('../../ios/getPlistPath');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const getProducts = require('../../ios/getProducts'); const getProducts = require('../../ios/getProducts');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const hasLibraryImported = require('../../ios/hasLibraryImported'); const hasLibraryImported = require('../../ios/hasLibraryImported');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const path = require('path'); const path = require('path');
const isInstalled = require('../../ios/isInstalled'); const isInstalled = require('../../ios/isInstalled');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const mapHeaderSearchPaths = require('../../ios/mapHeaderSearchPaths'); const mapHeaderSearchPaths = require('../../ios/mapHeaderSearchPaths');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const PbxFile = require('xcode/lib/pbxFile'); const PbxFile = require('xcode/lib/pbxFile');
const addProjectToLibraries = require('../../ios/addProjectToLibraries'); const addProjectToLibraries = require('../../ios/addProjectToLibraries');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const pbxFile = require('xcode/lib/pbxFile'); const pbxFile = require('xcode/lib/pbxFile');
const addFileToProject = require('../../ios/addFileToProject'); const addFileToProject = require('../../ios/addFileToProject');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const xcode = require('xcode'); const xcode = require('xcode');
const path = require('path'); const path = require('path');
const addSharedLibraries = require('../../ios/addSharedLibraries'); const addSharedLibraries = require('../../ios/addSharedLibraries');

View File

@ -9,7 +9,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
jest.mock('fs'); jest.mock('fs');
let plistPath = null; let plistPath = null;

View File

@ -9,8 +9,6 @@
'use strict'; 'use strict';
jest.autoMockOff();
const sinon = require('sinon'); const sinon = require('sinon');
const log = require('npmlog'); const log = require('npmlog');
const path = require('path'); const path = require('path');

View File

@ -1,7 +1,5 @@
'use strict'; 'use strict';
jest.autoMockOff();
const sinon = require('sinon'); const sinon = require('sinon');
const promiseWaterfall = require('../promiseWaterfall'); const promiseWaterfall = require('../promiseWaterfall');

View File

@ -9,7 +9,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock().dontMock('../findMatchingSimulator'); jest.dontMock('../findMatchingSimulator');
const findMatchingSimulator = require('../findMatchingSimulator'); const findMatchingSimulator = require('../findMatchingSimulator');

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock().dontMock('../findXcodeProject'); jest.dontMock('../findXcodeProject');
const findXcodeProject = require('../findXcodeProject'); const findXcodeProject = require('../findXcodeProject');

View File

@ -9,7 +9,7 @@
'use strict'; 'use strict';
jest.disableAutomock().dontMock('../parseIOSDevicesList'); jest.dontMock('../parseIOSDevicesList');
var parseIOSDevicesList = require('../parseIOSDevicesList'); var parseIOSDevicesList = require('../parseIOSDevicesList');
describe('parseIOSDevicesList', () => { describe('parseIOSDevicesList', () => {

View File

@ -8,7 +8,7 @@
*/ */
'use strict'; 'use strict';
jest.disableAutomock().dontMock('../getInverseDependencies'); jest.dontMock('../getInverseDependencies');
const getInverseDependencies = require('../getInverseDependencies'); const getInverseDependencies = require('../getInverseDependencies');

View File

@ -1,4 +1,3 @@
jest.disableAutomock();
import 'react-native'; import 'react-native';
import React from 'react'; import React from 'react';
import Index from '../index.android.js'; import Index from '../index.android.js';

View File

@ -1,4 +1,3 @@
jest.disableAutomock();
import 'react-native'; import 'react-native';
import React from 'react'; import React from 'react';
import Index from '../index.ios.js'; import Index from '../index.ios.js';

View File

@ -8,7 +8,6 @@
* *
*/ */
'use strict'; 'use strict';
jest.disableAutomock();
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');