Skip to content

Commit 4395225

Browse files
committed
add test instructions
1 parent e998bbe commit 4395225

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/deploy/modal.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@ await sb.terminate();
7373

7474
Modal caches image layers, so the `dockerfileCommands` that install `curl` and `sandbox-agent` only run on the first build. Subsequent sandbox creates reuse the cached image.
7575

76+
## Running the test
77+
78+
The example includes a health-check test. First, build the SDK:
79+
80+
```bash
81+
pnpm --filter sandbox-agent build
82+
```
83+
84+
Then run the test with your Modal credentials:
85+
86+
```bash
87+
MODAL_TOKEN_ID=<your-token-id> MODAL_TOKEN_SECRET=<your-token-secret> npx vitest run
88+
```
89+
90+
Run from `examples/modal/`. The test will skip if credentials are not set.
91+
7692
## Notes
7793

7894
- Modal sandboxes use [gVisor](https://gvisor.dev/) for strong isolation.

0 commit comments

Comments
 (0)