New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup jest #130
Setup jest #130
Conversation
Travis tests have failedHey @li-boxuan, Node.js: undefinednpm run test
|
package.json
Outdated
@@ -37,18 +37,22 @@ | |||
"babel-plugin-transform-class-properties": "^6.24.1", | |||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | |||
"babel-preset-env": "^1.6.1", | |||
"babel-preset-es2015": "^6.24.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env
should cover for es2015
already
.babelrc
Outdated
@@ -0,0 +1,3 @@ | |||
{ | |||
"presets": ["es2015", "react"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract this fom webpack conf
Lines 29 to 38 in 3c8b0e5
options: { | |
presets: [ | |
'react', | |
'env' | |
], | |
plugins: [ | |
'react-require', | |
'transform-object-rest-spread', | |
'transform-class-properties' | |
], |
babel-loader will also read from .babelrc
if it exists.
src/components/reactions.jsx
Outdated
@@ -1,3 +1,4 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this now since we have the same config as webpack?
85fac2a
to
d609707
Compare
Some general thoughts: I believe codecov.yml is currently doing nothing, so isnt necessary. Data can be sent to codecov without it, and the percentage will slowly rise. until it gets to a decent percentage, tracking that isnt useful. travis after_success/after_failure needs to be deactivated for the moban job. jest.config.js - I am not a fan of checking in a large config file of comments about possible settings. We know whether to find the docs if we want more settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, after all those reviews above this looks good to me.
@jayvdb I would prefer |
@wisn, why? |
@jayvdb I knew that several peoples hate "tiny" file like How about you guys? @li-boxuan @andrewda @blazeu |
.babelrc
Outdated
@@ -0,0 +1,11 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is welcoming. Most of the text editors these days automatically pick up babelrc files and provide autocompletion features based on babel configuration.
.codecov.yml
Outdated
@@ -0,0 +1,9 @@ | |||
comment: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like @jayvdb mentioned, we don't need a configuration to publish code coverage to codecov.
.travis.yml
Outdated
@@ -18,18 +20,33 @@ jobs: | |||
before_script: false | |||
script: .ci/check_moban.sh | |||
after_success: false | |||
after_failure: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a disable_global
variable like https://github.com/coala/git-task-list/blob/master/.travis.yml#L13 , so all extra jobs can re-use it.
.travis.yml
Outdated
@@ -8,6 +8,8 @@ cache: | |||
# env forces jobs to be created from the top level settings | |||
env: | |||
jobs: | |||
allow_failures: | |||
- script: script/run-integration-test.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very surprised this works.
Please use a variable like we do in coala/coala
repo for the job which is allowed to fail
a SyntaxError with the integration test |
Move integration test into individual stage and allow failure for it. Related to coala#45
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
Closes #45 & #129