Skip to content

Commit 386ee3c

Browse files
committed
Don't syntax-test node-modules
1 parent 3620c65 commit 386ee3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/syntax-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const REGEXS = BLACK_LIST.map(token => new RegExp(`^\\s*${token}\\(.*`));
77

88
describe('Syntax and test validation', () => {
99
describe(`ensures ${BLACK_LIST} is not present in tests`, () => {
10-
const files = glob.sync('**/__tests__/*.js');
10+
const files = glob.sync('!(node_modules|examples)/**/__tests__/*.js');
1111
files.forEach(file =>
1212
it(`checks ${file} for test checks`, () => {
1313
const code = fs.readFileSync(file, {encoding: 'utf-8'});

0 commit comments

Comments
 (0)