Skip to content

Commit a2180c9

Browse files
committed
docs(examples): fix test commands to run from examples directory
Correct the test commands in examples/README.md to reflect that tests must be run from within the examples directory, as it has its own package.json with test scripts. Changed from: - pnpm test examples/ To: - cd examples && pnpm test This prevents confusion as the root vitest config excludes the examples directory.
1 parent 64504e2 commit a2180c9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

examples/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ npx tsx examples/ai-sdk-integration.ts
7979
### Run All Examples
8080

8181
```bash
82-
# Test all examples
83-
pnpm test examples/
82+
# Test all examples (from examples directory)
83+
cd examples && pnpm test
8484
```
8585

8686
## Examples Overview
@@ -272,14 +272,14 @@ tool.setAccountId("account_123");
272272
The examples include a comprehensive test suite:
273273

274274
```bash
275-
# Run all example tests
276-
pnpm test examples/
275+
# Run all example tests (from examples directory)
276+
cd examples && pnpm test
277277

278278
# Run with verbose output
279-
pnpm test examples/ --verbose
279+
cd examples && pnpm test --verbose
280280

281281
# Run specific test
282-
pnpm test examples/examples.spec.ts
282+
cd examples && pnpm test examples.spec.ts
283283
```
284284

285285
## Troubleshooting

0 commit comments

Comments
 (0)