Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"predeploy": "sh scripts/predeploy.sh",
"mocha": "sh scripts/mocha.sh",
"test": "sh scripts/test.sh",
"jest": "jest",
"start-dev": "foreman start -f Procfile.dev",
"deploy-staging": "APP_NAME=ervell-staging S3_BUCKET=ervell-staging yarn deploy"
},
Expand Down Expand Up @@ -130,6 +131,7 @@
"ezel-assets": "git://github.com/arenahq/ezel-assets.git",
"friendly-errors-webpack-plugin": "^1.6.1",
"html5": "*",
"jest": "^23.4.1",
"mocha": "*",
"progress-bar-webpack-plugin": "^1.10.0",
"rewire": "https://registry.npmjs.org/rewire/-/rewire-2.5.2.tgz",
Expand All @@ -141,5 +143,8 @@
},
"optionalDependencies": {
"fsevents": "*"
},
"jest": {
"testURL": "http://localhost"
Copy link
Member Author

@damassi damassi Aug 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this once this patch is published. JSDom (used underneath Jest) made a change upstream and broke libs all across the internet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx much

}
}
7 changes: 7 additions & 0 deletions react/util/__tests__/formatErrors.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import formatErrors from 'react/util/formatErrors';

describe('formatErrors', () => {
it('works', () => {
expect(() => formatErrors()).toThrow();
});
});
Loading