Skip to content

chore(sandbox): fix the CLI tests#139

Merged
marc-vercel merged 1 commit intomainfrom
fix-cli-tests
Apr 8, 2026
Merged

chore(sandbox): fix the CLI tests#139
marc-vercel merged 1 commit intomainfrom
fix-cli-tests

Conversation

@marc-vercel
Copy link
Copy Markdown
Collaborator

The CLI tests are not working.

 FAIL  test/args/auth.test.ts [ test/args/auth.test.ts ]
 FAIL  test/args/scope.test.ts [ test/args/scope.test.ts ]
 FAIL  test/commands/cp.test.ts [ test/commands/cp.test.ts ]
 FAIL  test/types/duration.test.ts [ test/types/duration.test.ts ]
Error: require() of ES Module /Users/marc/Documents/Repositories/sandbox/node_modules/.pnpm/chalk@5.6.0/node_modules/chalk/source/index.js from /Users/marc/Documents/Repositories/sandbox/node_modules/.pnpm/cmd-ts@0.15.0/node_modules/cmd-ts/dist/cjs/subcommands.js not supported.
Instead change the require of index.js in /Users/marc/Documents/Repositories/sandbox/node_modules/.pnpm/cmd-ts@0.15.0/node_modules/cmd-ts/dist/cjs/subcommands.js to a dynamic import() which is available in all CommonJS modules.
 ❯ Object.<anonymous> ../../node_modules/.pnpm/cmd-ts@0.15.0/node_modules/cmd-ts/dist/cjs/subcommands.js:40:33

Fix them by adding a new vitest config file where we explicitly point cmd-ts to load the ESM entry.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sandbox-sdk Ready Ready Preview, Comment Apr 8, 2026 10:28am

@marc-vercel marc-vercel marked this pull request as ready for review April 8, 2026 10:28
@marc-vercel marc-vercel requested review from AndyW22 and QuiiBz April 8, 2026 10:28
@marc-vercel marc-vercel merged commit ac34694 into main Apr 8, 2026
14 checks passed
@marc-vercel marc-vercel deleted the fix-cli-tests branch April 8, 2026 10:46
marc-vercel added a commit that referenced this pull request Apr 20, 2026
…156)

Rebase from main the latest commits.

```
 ┌─────┬─────────┬────────────────────────────────────────────────────────────────────────────┐
  │  #  │ Commit  │                                   Title                                    │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 1   │ ac34694 │ chore(sandbox): fix the CLI tests (#139)                                   │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 2   │ 9dc0ac9 │ perf(sdk): re-use Undici Agent across instances (#143)                     │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 3   │ 3fbabb9 │ fix(sandbox): add workflow serialization support for Snapshot class (#140) │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 4   │ 42515e1 │ Add node:fs implementation on Sandbox (#112)                               │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 5   │ 494c2dd │ fix: smarter fallback team selection for scope inference (#120)            │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 6   │ 468731a │ chore: fix manually written changeset definition (#148)                    │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 7   │ ad18eca │ Version Packages (#144)                                                    │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 8   │ 747a689 │ feat(docs): add clarification for vCPUs on enterprise (#149)               │
  ├─────┼─────────┼────────────────────────────────────────────────────────────────────────────┤
  │ 9   │ a6394a4 │ [packages/sandbox] improve timeout values and hour format (#150)           │
  └─────┴─────────┴────────────────────────────────────────────────────────────────────────────┘
```

---------

Co-authored-by: Tom Lienard <tom.lienrd@gmail.com>
Co-authored-by: Nathan Rajlich <n@n8.io>
Co-authored-by: LukePS <LukeSheard@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andy <76787794+AndyW22@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants