Skip to content

Commit 6db1bac

Browse files
block it.only and describe.only
1 parent be01eb4 commit 6db1bac

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/__tests__/syntax-test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
import fs from 'fs';
33
import glob from 'glob';
44

5-
const BLACK_LIST = ['fdescribe', 'fit', 'xdescribe', 'xit'];
5+
const BLACK_LIST = [
6+
'fdescribe',
7+
'fit',
8+
'xdescribe',
9+
'xit',
10+
'it\\.only',
11+
'describe\\.only',
12+
];
613
const REGEXS = BLACK_LIST.map(token => new RegExp(`^\\s*${token}\\(.*`));
714

815
describe('Syntax and test validation', () => {

0 commit comments

Comments
 (0)