prepack/test/react/ReactNative-test.js
Dan Abramov 66351887d3 Run Prettier checks on CI (#2212)
Summary:
This will fail CI if we forgot to run `yarn prettier` before committing.
We do the same in React repo. It prevents committing stale files that later cause unexpected changes.
Pull Request resolved: https://github.com/facebook/prepack/pull/2212

Differential Revision: D8784406

Pulled By: gaearon

fbshipit-source-id: ca948b8e088be8886c8ba865f280ba8d72750f69
2018-07-10 09:55:23 -07:00

30 lines
885 B
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
/* @flow */
const setupReactTests = require("./setupReactTests");
const { runTest } = setupReactTests();
// $FlowFixMe: Jest is already defined globally
jest.unmock("../../node_modules/react-native/Libraries/Components/View/View.js");
// $FlowFixMe: Jest is already defined globally
jest.unmock("../../node_modules/react-native/Libraries/Text/Text.js");
/* eslint-disable no-undef */
const { it } = global;
it("Simple", async () => {
runTest(__dirname + "/ReactNative/simple.js");
});
it("Simple 2", async () => {
runTest(__dirname + "/ReactNative/simple2.js");
});