Skip to content

Commit

Permalink
refactor: migrate unit test to Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Jan 7, 2018
1 parent bc2b44c commit 31c2bd4
Show file tree
Hide file tree
Showing 24 changed files with 3,842 additions and 2,465 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"transform-decorators-legacy"
]
},
"test": {
"presets": [ "es2015-node4", "flow"],
"plugins": [
"transform-object-rest-spread"
]
},
"registry": {
"presets": [
"es2015-node4", "flow"
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ node_modules
coverage/
wiki/
static/
flow-typed/
website/
build/
9 changes: 6 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"plugins": [
"react",
"flowtype"
"flowtype",
"jest"
],
"extends": [
"eslint:recommended",
"google",
"plugin:react/recommended",
"plugin:flowtype/recommended"
"plugin:flowtype/recommended",
"plugin:jest/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
Expand All @@ -21,7 +23,8 @@
"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"jest": true
},
"rules": {
"no-tabs": 0,
Expand Down
7 changes: 3 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ test:
override:
- yarn run pre:ci
- nvm alias default 6
- yarn run test:ci
- yarn run test
- nvm alias default 4
- yarn run test:ci
- yarn run test
- nvm alias default 8
- yarn run test:ci
- yarn run coverage:publish
- yarn run test
deployment:
production:
tag: /(v)?[0-9]+(\.[0-9]+)*/
Expand Down
Loading

0 comments on commit 31c2bd4

Please sign in to comment.