Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarescu committed Feb 28, 2025
1 parent 642119f commit 8eb624a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ shortest(`
### Running tests

```bash
pnpm shortest # Run all tests
pnpm shortest __tests__/login.test.ts # Run specific test
pnpm shortest --headless # Run in headless mode using CLI
pnpm shortest # Run all tests
pnpm shortest login.test.ts # Run specific tests from a file
pnpm shortest login.test.ts:23 # Run specific test from a file using a line number
pnpm shortest --headless # Run in headless mode using
```

You can find example tests in the [`examples`](./examples) directory.
Expand Down
5 changes: 3 additions & 2 deletions packages/shortest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ shortest(`

```bash
pnpm shortest # Run all tests
pnpm shortest login.test.ts # Run specific test
pnpm shortest --headless # Run in headless mode using cli
pnpm shortest login.test.ts # Run specific tests from a file
pnpm shortest login.test.ts:23 # Run specific test from a file using a line number
pnpm shortest --headless # Run in headless mode using
```

You can find example tests in the [`examples`](./examples) directory.
Expand Down
2 changes: 1 addition & 1 deletion packages/shortest/src/core/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class TestRunner {
if (testsToRun.length === 0) {
this.reporter.error(
"Test Discovery",
`No tests found at line ${lineNumber} in ${filePathWithoutCwd}`,
`No test found at line ${lineNumber} in ${filePathWithoutCwd}`,
);
process.exit(1);
}
Expand Down

0 comments on commit 8eb624a

Please sign in to comment.