Skip to content

Commit a62ef79

Browse files
authored
Tests: Added --language for patterns tests (#2929)
1 parent f3dd72c commit a62ef79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/pattern-tests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const { visitRegExpAST } = require('regexpp');
1111
const { transform, combineTransformers, getIntersectionWordSets, JS, Words, NFA, Transformers } = require('refa');
1212
const scslre = require('scslre');
1313
const path = require('path');
14+
const { argv } = require('yargs');
1415

1516
/**
1617
* A map from language id to a list of code snippets in that language.
@@ -38,7 +39,7 @@ for (const languageIdentifier in testSuite) {
3839

3940

4041
for (const lang in languages) {
41-
if (lang === 'meta') {
42+
if (lang === 'meta' || (!!argv.language && lang !== argv.language)) {
4243
continue;
4344
}
4445

0 commit comments

Comments
 (0)