Skip to content

Commit 32737a7

Browse files
committed
build: add a nice message when running test without tests to run
1 parent c7cc4dd commit 32737a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ export default function (args: ParsedArgs, logger: logging.Logger) {
250250
}));
251251

252252
logger.info(`Found ${tests.length} spec files, out of ${allTests.length}.`);
253+
254+
if (tests.length === 0) {
255+
logger.info('No test to run, exiting... You might want to rerun with "--full".');
256+
process.exit('CI' in process.env ? 1 : 0);
257+
}
253258
}
254259
}
255260

0 commit comments

Comments
 (0)