Skip to content

Commit b5bc4fc

Browse files
authored
Chore/tests (#30)
1 parent 69a4cf2 commit b5bc4fc

8 files changed

Lines changed: 5582 additions & 3758 deletions

File tree

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"compact": true,
88
"env": {
99
"test": {
10-
"plugins": ["istanbul", "react-hot-loader/babel"]
10+
"plugins": ["react-hot-loader/babel"]
1111
}
1212
}
1313
}

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ jobs:
3232
key: v1-dependencies-{{ checksum "package.json" }}
3333

3434
# run tests!
35-
- run: npm test
36-
- run: CODECOV_TOKEN=444a47a4-b0fb-4cf1-8105-19a403cb7bbd npm run codecov
35+
- run:
36+
name: test
37+
command: npm run test:coverage
38+
- run:
39+
name: codecov
40+
command: CODECOV_TOKEN=444a47a4-b0fb-4cf1-8105-19a403cb7bbd npm run codecov

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage
77
.nyc_output
88
.tmp
99
componentsIndex.js
10-
.idea
10+
.idea
11+
.DS_Store

jestsetup.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Enzyme, { render, shallow, mount } from 'enzyme';
2+
import Adapter from 'enzyme-adapter-react-16';
3+
4+
Enzyme.configure({ adapter: new Adapter() });
5+
6+
global.shallow = shallow;
7+
global.render = render;
8+
global.mount = mount;
9+

0 commit comments

Comments
 (0)