Skip to content

Commit ac8832a

Browse files
committed
feat: Add API test command to package.json
- Introduced a new test command in package.json to run API tests. - Updated README to reflect the change, clarifying how to run the API tests.
1 parent 3de6ba2 commit ac8832a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
bun dev
4949
```
5050

51-
5. **Run the tests**
51+
5. **Run the API tests**
5252

5353
```sh
54-
APIURL=http://localhost:3000/api ./scripts/api-tests/run-api-tests.sh
54+
bun run test # not `bun test`!
5555
```
5656

5757
### Building for production

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"dev": "bun run --watch src/main.ts",
1111
"build": "./scripts/build.sh",
1212
"preview": "./server",
13+
"test": "APIURL=http://localhost:3000/api ./scripts/api-tests/run-api-tests.sh",
1314
"fix": "biome check --fix",
1415
"check": "biome check",
1516
"check:errors": "biome check --diagnostic-level=error",

0 commit comments

Comments
 (0)