We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3620c65 commit 386ee3cCopy full SHA for 386ee3c
src/__tests__/syntax-test.js
@@ -7,7 +7,7 @@ const REGEXS = BLACK_LIST.map(token => new RegExp(`^\\s*${token}\\(.*`));
7
8
describe('Syntax and test validation', () => {
9
describe(`ensures ${BLACK_LIST} is not present in tests`, () => {
10
- const files = glob.sync('**/__tests__/*.js');
+ const files = glob.sync('!(node_modules|examples)/**/__tests__/*.js');
11
files.forEach(file =>
12
it(`checks ${file} for test checks`, () => {
13
const code = fs.readFileSync(file, {encoding: 'utf-8'});
0 commit comments