Skip to content

Commit

Permalink
Use jest eslint plugin to disallow disabled tests
Browse files Browse the repository at this point in the history
Reviewed By: cpojer

Differential Revision: D6671502

fbshipit-source-id: 8f1757e5cc2d1a1d8a339aea63dbff7690ae1aff
  • Loading branch information
elicwhite authored and facebook-github-bot committed Jan 8, 2018
1 parent 79902f9 commit 9a36872
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"plugins": [
"flowtype",
"prettier",
"react"
"react",
"jest"
],

// Map from global var to bool specifying if it can be redefined
Expand Down Expand Up @@ -245,6 +246,11 @@
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 0
"react/wrap-multilines": 0,

// Jest Plugin
// The following rules are made available via `eslint-plugin-jest`.
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
"eslint-config-fbjs": "^1.1.1",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-jest": "^21.5.0",
"eslint-plugin-prettier": "2.1.1",
"eslint-plugin-react": "^7.2.1",
"flow-bin": "^0.63.0",
Expand Down

0 comments on commit 9a36872

Please sign in to comment.