Skip to content

Commit bc1fd06

Browse files
yanhao98严浩
andauthored
fix(test): move timeout config to CLI flag (#13494)
Co-authored-by: 严浩 <h_mini2024@oo1.dev>
1 parent 88e2eb5 commit bc1fd06

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/opencode/bunfig.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ preload = ["@opentui/solid/preload"]
22

33
[test]
44
preload = ["./test/preload.ts"]
5-
timeout = 30000 # 30 seconds - allow time for package installation
5+
# timeout is not actually parsed from bunfig.toml (see src/bunfig.zig in oven-sh/bun)
6+
# using --timeout in package.json scripts instead
7+
# https://github.com/oven-sh/bun/issues/7789

packages/opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"private": true,
88
"scripts": {
99
"typecheck": "tsgo --noEmit",
10-
"test": "bun test",
10+
"test": "bun test --timeout 30000",
1111
"build": "bun run script/build.ts",
1212
"dev": "bun run --conditions=browser ./src/index.ts",
1313
"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'",

0 commit comments

Comments
 (0)