Skip to content

Commit

Permalink
update testing suite and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
testshallpass committed Dec 27, 2019
1 parent 57d5a8a commit 734362e
Show file tree
Hide file tree
Showing 12 changed files with 11,134 additions and 4,604 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "6.9.1"
- "8.11.3"
branches:
only:
- master
Expand Down
1 change: 0 additions & 1 deletion __tests__/CancelButton-test.js
@@ -1,4 +1,3 @@
import 'react-native';
import React from 'react';
import CancelButton from '../CancelButton';
import { shallow } from 'enzyme';
Expand Down
1 change: 0 additions & 1 deletion __tests__/ImageView-test.js
@@ -1,4 +1,3 @@
import 'react-native';
import React from 'react';
import ImageView from '../imageview';
import { shallow } from 'enzyme';
Expand Down
1 change: 0 additions & 1 deletion __tests__/TextView-test.js
@@ -1,4 +1,3 @@
import 'react-native';
import React from 'react';
import TextView from '../TextView';
import { shallow } from 'enzyme';
Expand Down
8 changes: 4 additions & 4 deletions __tests__/__snapshots__/DropdownAlert-test.js.snap
Expand Up @@ -39,7 +39,7 @@ exports[`DropdownAlert component Snapshots expect to render 1`] = `
onLayout={[Function]}
onPress={[Function]}
>
<Component
<View
style={
Array [
Object {
Expand Down Expand Up @@ -74,7 +74,7 @@ exports[`DropdownAlert component Snapshots expect to render 1`] = `
}
}
/>
<Component
<View
style={
Object {
"flex": 1,
Expand Down Expand Up @@ -108,9 +108,9 @@ exports[`DropdownAlert component Snapshots expect to render 1`] = `
}
text=""
/>
</Component>
</View>
</SafeAreaView>
</Component>
</View>
</TouchableOpacity>
</AnimatedComponent>
`;
3 changes: 0 additions & 3 deletions __tests__/__snapshots__/TextView-test.js.snap
Expand Up @@ -2,9 +2,6 @@

exports[`renders TextView with text 1`] = `
<Text
accessible={true}
allowFontScaling={true}
ellipsizeMode="tail"
numberOfLines={1}
style={
Object {
Expand Down
3 changes: 3 additions & 0 deletions babel.config.js
@@ -0,0 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
11 changes: 11 additions & 0 deletions jest.config.js
@@ -0,0 +1,11 @@
// Reference: https://jestjs.io/docs/en/configuration.html
module.exports = {
displayName: 'test',
clearMocks: true,
coverageDirectory: 'coverage',
preset: 'react-native',
setupFiles: ['<rootDir>/setupTests.js'],
testEnvironment: 'node',
modulePathIgnorePatterns: ['/Example'],
collectCoverage: true,
};

0 comments on commit 734362e

Please sign in to comment.