From 6db1bac7cea908c4ddbaa8a51d4550cd64f7b142 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 27 Feb 2018 15:48:18 -0500 Subject: [PATCH] block it.only and describe.only --- src/__tests__/syntax-test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/__tests__/syntax-test.js b/src/__tests__/syntax-test.js index 82da3ac9b..e361387af 100644 --- a/src/__tests__/syntax-test.js +++ b/src/__tests__/syntax-test.js @@ -2,7 +2,14 @@ import fs from 'fs'; import glob from 'glob'; -const BLACK_LIST = ['fdescribe', 'fit', 'xdescribe', 'xit']; +const BLACK_LIST = [ + 'fdescribe', + 'fit', + 'xdescribe', + 'xit', + 'it\\.only', + 'describe\\.only', +]; const REGEXS = BLACK_LIST.map(token => new RegExp(`^\\s*${token}\\(.*`)); describe('Syntax and test validation', () => {