Skip to content

Commit

Permalink
Ignore React Native tests in Node 6
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Oct 10, 2018
1 parent 2e2627d commit 92c5e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --ignore-engines
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
# react-native does not work with node 6
command: rm -rf examples/react-native && yarn test-ci-partial
- store_test_results:
path: reports/junit

Expand Down
2 changes: 2 additions & 0 deletions examples/react-native/__tests__/intro.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import Intro from '../Intro';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

jest.setTimeout(15000);

it('renders correctly', () => {
const tree = renderer.create(<Intro />).toJSON();
expect(tree).toMatchSnapshot();
Expand Down

0 comments on commit 92c5e04

Please sign in to comment.