Skip to content

Commit

Permalink
remove comments | use testPattern from args
Browse files Browse the repository at this point in the history
  • Loading branch information
khalatevarun committed Feb 27, 2025
1 parent d5599ba commit d82a80e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/shortest/src/cli/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const main = async () => {
log.trace("Initializing TestRunner");
const runner = new TestRunner(process.cwd(), config);
await runner.initialize();
const success = await runner.execute(config.testPattern, lineNumber);
const success = await runner.execute(testPattern ?? config.testPattern, lineNumber);
process.exitCode = success ? 0 : 1;
} catch (error: any) {
log.trace("Handling error for TestRunner");
Expand Down
5 changes: 0 additions & 5 deletions packages/shortest/src/core/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,6 @@ export class TestRunner {
this.reporter.onFileEnd(fileResult);
}
}

// async runTests(pattern?: string, lineNumber?: number) {
// await this.initialize();
// const files = await this.findTestFiles(pattern);

async execute(testPattern: string, lineNumber?: number): Promise<boolean> {
this.log.trace("Finding test files", { testPattern });

Expand Down

0 comments on commit d82a80e

Please sign in to comment.