Skip to content

Commit e1e7be5

Browse files
committed
prevent test.only
1 parent d072503 commit e1e7be5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.eslintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"mocha": true
66
},
77
"parser": "@typescript-eslint/parser",
8-
"plugins": ["@typescript-eslint"],
8+
"plugins": [
9+
"@typescript-eslint",
10+
"no-only-tests"
11+
],
912
"extends": [
1013
"airbnb",
1114
"plugin:@typescript-eslint/recommended",
@@ -97,6 +100,7 @@
97100
}
98101
],
99102
"operator-assignment": "off",
100-
"strict": "off"
103+
"strict": "off",
104+
"no-only-tests/no-only-tests": ["error", { "block": ["test", "suite"], "focus": ["only"] }]
101105
}
102106
}

src/test/repl/variableProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IVariableDescription } from '../../client/repl/variables/types';
88
import { VariablesProvider } from '../../client/repl/variables/variablesProvider';
99
import { VariableRequester } from '../../client/repl/variables/variableRequester';
1010

11-
suite('ReplVariablesProvider', () => {
11+
suite.only('ReplVariablesProvider', () => {
1212
let provider: VariablesProvider;
1313
let varRequester: TypeMoq.IMock<VariableRequester>;
1414
let notebook: TypeMoq.IMock<NotebookDocument>;

0 commit comments

Comments
 (0)