WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ const output = await client.commands.run("echo 'Hello World'");
console.log(output); // Hello World
```

## Running tests

### All tests

- Run all tests with `npm run test`
- Run specific test file `npm run test -- filesystem`

### E2E production

- Run e2e tests with `npm run test:e2e`
- Run specific test file `npm run test -- filesystem`

### E2E local

- Clone the sandbox templates repo (https://github.com/codesandbox/sandbox-templates)
- Build template with `csb build ../sandbox-templates/nextjs`
- Run e2e tests with `CSB_BASE_URL=https://api.codesandbox.dev CSB_TEMPLATE_ID=$NEXTJS_TEMPLATE_ID npm run test:e2e`
- Run specific test file `CSB_BASE_URL=https://api.codesandbox.dev CSB_TEMPLATE_ID=$NEXTJS_TEMPLATE_ID npm run test -- filesystem`

## Efficient Sandbox Retrieval

When you need to retrieve metadata for specific sandboxes by their IDs, you can use the efficient retrieval methods instead of listing and filtering all sandboxes:
Expand Down
Loading