• turbo 2.10.12 • Packages in scope: @bb/desktop • Running test in 1 packages • Remote caching disabled, using shared worktree cache @bb/templates:generate:templates: cache bypass, force executing 741cd45bb480b468 @bb/process-utils:generate:profile-worker: cache bypass, force executing 4cfb6d652eedf3da //:ensure-native-modules: cache bypass, force executing abb6c464cceb57a1 @bb/templates:generate:plugin-scaffold: cache bypass, force executing 2f7fa4e7bb51ea77 @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker $SECOND_CHECKOUT/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules $SECOND_CHECKOUT //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold $SECOND_CHECKOUT/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates $SECOND_CHECKOUT/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/desktop:test: cache bypass, force executing 61f343116809264f @bb/desktop:test: @bb/desktop:test: > @bb/desktop@0.48.0 test $SECOND_CHECKOUT/apps/desktop @bb/desktop:test: > install-electron && vitest run --config vitest.config.ts "test/desktop-window-factory.test.ts" "test/menu.test.ts" "test/electron-builder-config.test.ts" @bb/desktop:test: @bb/desktop:test: @bb/desktop:test: RUN v4.1.1 $SECOND_CHECKOUT/apps/desktop @bb/desktop:test: @bb/desktop:test: ❯ |@bb/desktop:isolated| test/menu.test.ts (36 tests | 1 failed) 32ms @bb/desktop:test: × keeps an unchanged native menu while using the latest callbacks 9ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"isMac":false} 2ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"showBuiltinServer":false} 1ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"connectServersSkipReason":"unauthorized"} 1ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"servers":[{"checked":false,"id":"builtin","name":"This Computer"}]} 1ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"servers":[{"checked":true,"id":"custom:other","name":"This Computer"}]} 0ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"servers":[{"checked":true,"id":"builtin","name":"Renamed"}]} 0ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"servers":[]} 0ms @bb/desktop:test: ✓ replaces the native menu when its contents change: {"accelerators":{"openNewTab":"CommandOrControl+T"}} 1ms @bb/desktop:test: ✓ reinstalls the menu if another owner removes it 0ms @bb/desktop:test: ✓ updates server routing even when the displayed label stays the same 1ms @bb/desktop:test: ✓ opens local logs independently of runtime ownership (isMac=true) 0ms @bb/desktop:test: ✓ opens local logs independently of runtime ownership (isMac=false) 0ms @bb/desktop:test: ✓ reopens the last closed tab from the File menu 0ms @bb/desktop:test: ✓ closes a native panel when Electron omits its window 1ms @bb/desktop:test: ✓ forwards an undefined window for detached DevTools 0ms @bb/desktop:test: ✓ routes zoom shortcuts to the focused page's clamped zoom 1ms @bb/desktop:test: ✓ shows reload shortcuts without globally stealing browser commands 1ms @bb/desktop:test: ✓ enables editing only a selected saved or Connect server ('builtin') 0ms @bb/desktop:test: ✓ enables editing only a selected saved or Connect server ('connect:office') 0ms @bb/desktop:test: ✓ enables editing only a selected saved or Connect server ('custom:office') 0ms @bb/desktop:test: ✓ builds a Server menu with multiple custom targets and separate add/edit actions 1ms @bb/desktop:test: ✓ offers the Server menu under Desktop Settings with Window → Server as an alias 1ms @bb/desktop:test: ✓ offers sign-in with the server actions when the sync needs it ('no-credential') 0ms @bb/desktop:test: ✓ offers sign-in with the server actions when the sync needs it ('unauthorized') 0ms @bb/desktop:test: ✓ adds no Connect row when sign-in cannot fix the sync ('unavailable') 0ms @bb/desktop:test: ✓ adds no Connect row when sign-in cannot fix the sync ('not-paired') 0ms @bb/desktop:test: ✓ adds no Connect row when sign-in cannot fix the sync ('plugin-disabled') 0ms @bb/desktop:test: ✓ builds a native Linux menu with the Linux DevTools accelerator 0ms @bb/desktop:test: ✓ exposes the platform visibility checkbox (Mac: true) 1ms @bb/desktop:test: ✓ exposes the platform visibility checkbox (Mac: false) 0ms @bb/desktop:test: ✓ shares native and palette visibility: {"active":true,"alternatives":1,"show":false,"custom":false,"visible":true} 2ms @bb/desktop:test: ✓ shares native and palette visibility: {"active":true,"alternatives":0,"show":false,"custom":false,"visible":true} 1ms @bb/desktop:test: ✓ shares native and palette visibility: {"active":false,"alternatives":1,"show":false,"custom":false,"visible":false} 1ms @bb/desktop:test: ✓ shares native and palette visibility: {"active":false,"alternatives":1,"show":true,"custom":false,"visible":true} 1ms @bb/desktop:test: ✓ shares native and palette visibility: {"active":false,"alternatives":1,"show":false,"custom":true,"visible":false} 2ms @bb/desktop:test: ❯ |@bb/desktop| test/electron-builder-config.test.ts (23 tests | 1 failed) 708ms @bb/desktop:test: ✓ keeps package metadata compatible with electron universal's CJS entry asar 6ms @bb/desktop:test: ✓ ships no plugin build toolchain binaries 1ms @bb/desktop:test: ✓ unpacks the ESM bb-app bridge with an explicit module extension 8ms @bb/desktop:test: ✓ runs a native module preparation hook after packaging 4ms @bb/desktop:test: ✓ passes the standalone platform through to better-sqlite3 prebuild-install 1ms @bb/desktop:test: ✓ preserves the macOS better-sqlite3 prebuild-install arguments 0ms @bb/desktop:test: ✓ installs native plugin build packages for arm64 and x64 2ms @bb/desktop:test: ✓ disables in-place native rebuilds so the shared pnpm store is not mutated 1ms @bb/desktop:test: ✓ excludes source maps from packaged app files 2ms @bb/desktop:test: ✓ copies the app scaffold template as a dedicated file set 1ms @bb/desktop:test: ✓ patches packaged node-pty helper path handling 95ms @bb/desktop:test: × validates bundled N-API SQLite without using the legacy prebuild installer 208ms @bb/desktop:test: ✓ points mac signing entitlements at checked-in plist files 2ms @bb/desktop:test: ✓ packages macOS artifacts for arm64 only 1ms @bb/desktop:test: ✓ packages a Linux AppImage for x64 2ms @bb/desktop:test: ✓ grants audio input to the signed app and helper processes 3ms @bb/desktop:test: ✓ keeps the updater provider pointed at desktop-latest release assets 1ms @bb/desktop:test: ✓ creates a separate nightly app identity and update feed 70ms @bb/desktop:test: ✓ rejects unknown desktop release channels 56ms @bb/desktop:test: ✓ signs local builds via keychain auto-discovery when signing secrets are absent 66ms @bb/desktop:test: ✓ keeps builds unsigned when keychain auto-discovery is explicitly disabled 53ms @bb/desktop:test: ✓ rejects partial signing secret sets 64ms @bb/desktop:test: ✓ enables app signing and notarization when signing and Apple credentials are complete 57ms @bb/desktop:test: ❯ |@bb/desktop:isolated| test/desktop-window-factory.test.ts (21 tests | 1 failed) 1650ms @bb/desktop:test: × starts every saved page before any finishes and returns saved order 1024ms @bb/desktop:test: ✓ updates macOS traffic lights at zoom 0.5 3ms @bb/desktop:test: ✓ updates macOS traffic lights at zoom 1.5 1ms @bb/desktop:test: ✓ updates macOS traffic lights at zoom 2 1ms @bb/desktop:test: ✓ hands each window over before its first page loads, so the page's IPC is accepted 1ms @bb/desktop:test: ✓ does not register the zoom event for non-Mac windows 1ms @bb/desktop:test: ✓ restores the last closed window on Dock reopen and after quitting without windows 4ms @bb/desktop:test: ✓ saves move and resize events without quitting, including simultaneous windows 520ms @bb/desktop:test: ✓ saves normal bounds during maximize so restoring and unmaximizing preserves size 5ms @bb/desktop:test: ✓ saves normal bounds during enter-full-screen so restoring and unmaximizing preserves size 4ms @bb/desktop:test: ✓ shares one zoom across windows, new windows, navigation and restart 59ms @bb/desktop:test: ✓ freezes saved geometry during quit teardown 3ms @bb/desktop:test: ✓ matches each window's page color without resetting on missing metadata (dark: true) 2ms @bb/desktop:test: ✓ matches each window's page color without resetting on missing metadata (dark: false) 1ms @bb/desktop:test: ✓ preserves transparent Linux backgrounds when the page supplies an opaque theme color 1ms @bb/desktop:test: ✓ creates distinct windows that load the same URL 5ms @bb/desktop:test: ✓ allocates distinct state keys for concurrent implicit windows 3ms @bb/desktop:test: ✓ opens only policy-approved blank-target links externally and denies every popup 1ms @bb/desktop:test: ✓ 'keeps the native frame' for Linux windows 2ms @bb/desktop:test: ✓ 'enables transparency when requested' for Linux windows 1ms @bb/desktop:test: ✓ 'removes the native frame when request…' for Linux windows 1ms @bb/desktop:test: @bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯ @bb/desktop:test: @bb/desktop:test: FAIL |@bb/desktop| test/electron-builder-config.test.ts > electron-builder signing config > validates bundled N-API SQLite without using the legacy prebuild installer @bb/desktop:test: AssertionError: expected 'Error: Command failed: /tmp/slopcop-6…' to be '' // Object.is equality @bb/desktop:test: @bb/desktop:test: - Expected @bb/desktop:test: + Received @bb/desktop:test: @bb/desktop:test: + Error: Command failed: $SECOND_CHECKOUT/node_modules/.pnpm/electron@44.9.3/node_modules/electron/dist/electron -e const Database = require(process.argv[1]); const db = new Database(':memory:'); if (db.prepare('SELECT 1 AS value').get().value !== 1) throw new Error('SQLite verification failed'); db.close(); $TEST_TMP/bb-desktop-napi-npWXAC/node_modules/better-sqlite3 @bb/desktop:test: + $SECOND_CHECKOUT/node_modules/.pnpm/electron@44.9.3/node_modules/electron/dist/electron: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory @bb/desktop:test: + @bb/desktop:test: + at genericNodeError (node:internal/errors:983:15) @bb/desktop:test: + at wrappedFn (node:internal/errors:537:14) @bb/desktop:test: + at checkExecSyncError (node:child_process:915:11) @bb/desktop:test: + at execFileSync (node:child_process:951:15) @bb/desktop:test: + at verify ($SECOND_CHECKOUT/apps/desktop/scripts/prepare-native-modules.cjs:197:5) @bb/desktop:test: + at prepareBetterSqlite3PackageDirectory ($SECOND_CHECKOUT/apps/desktop/scripts/prepare-native-modules.cjs:212:7) @bb/desktop:test: + at async Promise.all (index 0) @bb/desktop:test: + at async preparePackagedNativeModules ($SECOND_CHECKOUT/apps/desktop/scripts/prepare-native-modules.cjs:314:3) @bb/desktop:test: + at async main ($SECOND_CHECKOUT/apps/desktop/scripts/prepare-native-modules.cjs:441:3) @bb/desktop:test: + @bb/desktop:test: @bb/desktop:test: ❯ test/electron-builder-config.test.ts:482:29 @bb/desktop:test: 480| "--electron-version=44.9.3", @bb/desktop:test: 481| ]); @bb/desktop:test: 482| expect(result.stderr).toBe(""); @bb/desktop:test: | ^ @bb/desktop:test: 483| expect(result.exitCode).toBe(0); @bb/desktop:test: 484| const binaryPath = resolve( @bb/desktop:test: @bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯ @bb/desktop:test: @bb/desktop:test: FAIL |@bb/desktop:isolated| test/desktop-window-factory.test.ts > desktop window factory > starts every saved page before any finishes and returns saved order @bb/desktop:test: AssertionError: expected [ FakeDesktopWindow{ id: 4, …(16) } ] to have a length of 3 but got 1 @bb/desktop:test: @bb/desktop:test: - Expected @bb/desktop:test: + Received @bb/desktop:test: @bb/desktop:test: - 3 @bb/desktop:test: + 1 @bb/desktop:test: @bb/desktop:test: ❯ test/desktop-window-factory.test.ts:361:46 @bb/desktop:test: 359| }); @bb/desktop:test: 360| try { @bb/desktop:test: 361| await vi.waitFor(() => expect(started).toHaveLength(3)); @bb/desktop:test: | ^ @bb/desktop:test: 362| expect(completed).toHaveLength(0); @bb/desktop:test: 363| releases[2]?.(); @bb/desktop:test: @bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯ @bb/desktop:test: @bb/desktop:test: FAIL |@bb/desktop:isolated| test/menu.test.ts > application menu > keeps an unchanged native menu while using the latest callbacks @bb/desktop:test: AssertionError: expected "vi.fn()" to be called 1 times, but got 2 times @bb/desktop:test: ❯ test/menu.test.ts:124:36 @bb/desktop:test: 122| }), @bb/desktop:test: 123| ); @bb/desktop:test: 124| expect(Menu.buildFromTemplate).toHaveBeenCalledTimes(1); @bb/desktop:test: | ^ @bb/desktop:test: 125| expect(Menu.setApplicationMenu).toHaveBeenCalledTimes(1); @bb/desktop:test: 126| const fileItems = template.find((item) => item.label === "File") @bb/desktop:test: @bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯ @bb/desktop:test: @bb/desktop:test: @bb/desktop:test: Test Files 3 failed (3) @bb/desktop:test: Tests 3 failed | 77 passed (80) @bb/desktop:test: Start at 09:32:43 @bb/desktop:test: Duration 5.13s (transform 5.42s, setup 0ms, import 6.41s, tests 2.39s, environment 0ms) @bb/desktop:test: @bb/desktop:test:  ELIFECYCLE  Test failed. See above for more details. @bb/desktop#test: ERROR command ($SECOND_CHECKOUT/apps/desktop) /usr/local/bin/pnpm run test test/desktop-window-factory.test.ts test/menu.test.ts test/electron-builder-config.test.ts exited (1) Tasks: 4 successful, 5 total Cached: 0 cached, 5 total Time: 7.889s Failed: @bb/desktop#test ERROR run failed: command exited (1)