Skip to content

Commit 92c5e04

Browse files
committed
Ignore React Native tests in Node 6
1 parent 2e2627d commit 92c5e04

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ jobs:
9090
steps:
9191
- checkout
9292
- restore-cache: *restore-cache
93-
- run: yarn --no-progress
93+
- run: yarn --no-progress --ignore-engines
9494
- save-cache: *save-cache
9595
- run:
96-
command: yarn test-ci-partial
96+
# react-native does not work with node 6
97+
command: rm -rf examples/react-native && yarn test-ci-partial
9798
- store_test_results:
9899
path: reports/junit
99100

examples/react-native/__tests__/intro.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import Intro from '../Intro';
1010
// Note: test renderer must be required after react-native.
1111
import renderer from 'react-test-renderer';
1212

13+
jest.setTimeout(15000);
14+
1315
it('renders correctly', () => {
1416
const tree = renderer.create(<Intro />).toJSON();
1517
expect(tree).toMatchSnapshot();

0 commit comments

Comments
 (0)