Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 76d47cb

Browse files
committed
test: fix glob option in tests
1 parent e9ccc62 commit 76d47cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ glob.sync('packages/**/*.spec.ts')
152152
});
153153

154154
export default function (args: ParsedArgs, logger: logging.Logger) {
155-
const packageGlob = args.glob ? `**/${args.glob}/**` : '**';
156155
const specGlob = args.large ? '*_spec_large.ts' : '*_spec.ts';
157-
const regex = `packages/${packageGlob}/${specGlob}`;
156+
const regex = args.glob ? args.glob : `packages/**/${specGlob}`;
158157

159158
if (args['code-coverage']) {
160159
runner.env.addReporter(new IstanbulReporter());

0 commit comments

Comments
 (0)