Skip to content

Commit

Permalink
add jest as unit framework
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-admin committed May 14, 2019
1 parent 06e0839 commit 256b65a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
},
extends: 'standard',
plugins: [
'html'
'html',
'jest'
],
'globals': {
'wx': false,
Expand All @@ -22,6 +23,9 @@ module.exports = {
},
rules: {
'no-cond-assign': 0,
"camelcase": ['error', {'allow': ['__mpx_mode__', '__swan_exports_map__']}]
'camelcase': ['error', {'allow': ['__mpx_mode__', '__swan_exports_map__']}]
},
env: {
'jest/globals': true
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-html": "^5.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-local-rules": "^0.1.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest": "^24.8.0",
"lerna": "^3.4.3"
}
}

0 comments on commit 256b65a

Please sign in to comment.