Skip to content

Commit

Permalink
Merge pull request swagger-api#3799 from swagger-api/bug/mocha-exclus…
Browse files Browse the repository at this point in the history
…ive-tests

Add ESLint rule that catches `describe.only`, `it.only`
  • Loading branch information
shockey authored Oct 21, 2017
2 parents c4a74d4 + 075c94f commit 96b0b04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"extends": ["eslint:recommended", "plugin:react/recommended"],

"plugins": [
"react"
"react",
"mocha"
],

"rules": {
Expand All @@ -32,6 +33,7 @@
"comma-dangle": 0,
"no-console": ["error", { allow: ["warn", "error"] }],
"react/jsx-no-bind": 1,
"react/display-name": 0
"react/display-name": 0,
"mocha/no-exclusive-tests": "error"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"enzyme": "^2.7.1",
"eslint": "^4.1.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-react": "^7.1.0",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "0.11.2",
Expand Down
2 changes: 1 addition & 1 deletion test/core/plugins/oas3/wrap-auth-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
definitionsToAuthorize
} from "corePlugins/oas3/auth-extensions/wrap-selectors"

describe.only("oas3 plugin - auth extensions - wrapSelectors", function(){
describe("oas3 plugin - auth extensions - wrapSelectors", function(){

describe("execute", function(){

Expand Down

0 comments on commit 96b0b04

Please sign in to comment.