Skip to content

Commit

Permalink
web: init jest
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshu013 committed Mar 1, 2018
1 parent 9aacd40 commit 8d09f4c
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"es6": true,
"node": true
},
"extends": "airbnb",
"plugins": [
"jest"
],
"extends": ["airbnb", "plugin:jest/recommended"],
"parser": "babel-eslint",
"rules": {
"indent": [2, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
Expand Down
7 changes: 5 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
],
"scripts": {
"watch": "yarn run build -w",
"build": "babel src --out-dir lib",
"build": "babel --ignore __tests__ src --out-dir lib",
"build:umd": "webpack --progress -p --config webpack.config.umd.js",
"stats": "webpack --progress -p --config webpack.config.umd.js --json > stats.json",
"prepublish": "yarn run build"
"prepublish": "yarn run build",
"test": "../../node_modules/jest/bin/jest.js --watch"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -51,6 +52,8 @@
"babili-webpack-plugin": "^0.1.2",
"brotli-webpack-plugin": "^0.5.0",
"compression-webpack-plugin": "^1.0.1",
"eslint-plugin-jest": "^21.12.2",
"jest": "^22.4.2",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"webpack": "^3.2.0"
Expand Down
Loading

0 comments on commit 8d09f4c

Please sign in to comment.