Skip to content

Commit 5f2cc67

Browse files
author
Evan Roman
committed
test
1 parent 603bd96 commit 5f2cc67

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@ import Mocha from 'mocha';
66
import path from 'path';
77
import { defaultTimeout } from './constants';
88
import { getModelArg, getOldConfigArg } from './getModelArg';
9-
import yargs from 'yargs';
109

1110
export async function run(): Promise<void> {
1211
try {
13-
const argv = yargs(process.argv.slice(2)).option('exclude', {
14-
type: 'string',
15-
description: 'Glob pattern of tests to exclude',
16-
}).parseSync();
17-
const excludePattern = argv.exclude ? [argv.exclude] : [];
18-
1912
const oldConfigSuffix = getOldConfigArg() ? '_oldConfig' : '';
2013
const fileName = `${process.platform}_model-${getModelArg()}_Node-${process.version}${oldConfigSuffix}.xml`;
2114
const options: Mocha.MochaOptions = {
@@ -34,7 +27,7 @@ export async function run(): Promise<void> {
3427

3528
const mocha = new Mocha(options);
3629

37-
const files: string[] = await globby(['**/**.test.js', ...excludePattern.map(p => `!${p}`)], { cwd: __dirname });
30+
const files: string[] = await globby('**/**.test.js', { cwd: __dirname });
3831

3932
files.forEach((f) => mocha.addFile(path.resolve(__dirname, f)));
4033

0 commit comments

Comments
 (0)