mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Modified the ESLint configuration to only enable the Jest environment for files we consider now tests, which are files with the `-test.js` suffix under `__tests__`. Also enabled some globals for test helpers (any file under `__tests__`). This will allow us to catch misspelled tests, while allowing test helpers to use most Jest APIs. Also disabled the Jasmine environment so people stop using Jasmine APIs and we can rollout Circus soon. Reviewed By: aaronabramov Differential Revision: D13199591 fbshipit-source-id: 12a32cf5835630b9987452b0c33d3f8085001689
16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
/**
|
|
* @format
|
|
* @lint-ignore-every XPLATJSCOPYRIGHT1
|
|
*/
|
|
|
|
import 'react-native';
|
|
import React from 'react';
|
|
import App from '../App';
|
|
|
|
// Note: test renderer must be required after react-native.
|
|
import renderer from 'react-test-renderer';
|
|
|
|
it('renders correctly', () => {
|
|
renderer.create(<App />);
|
|
});
|