diff options
| author | 严浩 <[email protected]> | 2026-02-13 23:20:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-13 10:20:02 -0500 |
| commit | bc1fd0633dfd021545cd22041fab995f93ec2413 (patch) | |
| tree | 7fd482f4a592dbf54982571da92ea1dcd86d4884 | |
| parent | 88e2eb5416043378f96720db83920f28e0250245 (diff) | |
| download | opencode-bc1fd0633dfd021545cd22041fab995f93ec2413.tar.gz opencode-bc1fd0633dfd021545cd22041fab995f93ec2413.zip | |
fix(test): move timeout config to CLI flag (#13494)
Co-authored-by: 严浩 <[email protected]>
| -rw-r--r-- | packages/opencode/bunfig.toml | 4 | ||||
| -rw-r--r-- | packages/opencode/package.json | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/opencode/bunfig.toml b/packages/opencode/bunfig.toml index c4617527d..c3b727076 100644 --- a/packages/opencode/bunfig.toml +++ b/packages/opencode/bunfig.toml @@ -2,4 +2,6 @@ preload = ["@opentui/solid/preload"] [test] preload = ["./test/preload.ts"] -timeout = 30000 # 30 seconds - allow time for package installation +# timeout is not actually parsed from bunfig.toml (see src/bunfig.zig in oven-sh/bun) +# using --timeout in package.json scripts instead +# https://github.com/oven-sh/bun/issues/7789 diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 82d562bb0..03e58c029 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -7,7 +7,7 @@ "private": true, "scripts": { "typecheck": "tsgo --noEmit", - "test": "bun test", + "test": "bun test --timeout 30000", "build": "bun run script/build.ts", "dev": "bun run --conditions=browser ./src/index.ts", "random": "echo 'Random script updated at $(date)' && echo 'Change queued successfully' && echo 'Another change made' && echo 'Yet another change' && echo 'One more change' && echo 'Final change' && echo 'Another final change' && echo 'Yet another final change'", |
