fmt(js): npm run fix on merge (#125310)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-09-27 14:06:23 +00:00
committed by GitHub
parent e5050a040a
commit e54d550521
3 changed files with 20 additions and 5 deletions

View File

@@ -443,7 +443,12 @@ import {
import { createQuickEntryShortcut, quickEntryWindowBounds, sanitizeQuickEntrySettings } from './quick-entry'
import { createQuitFinalization } from './quit-finalization'
import { type ActiveWork, backendOwnedByApp, mergeActiveWork, normalizeActiveWork, quitPromptFor } from './quit-guard'
import { backendQuitNeedsWait, backendTeardownOptions, createQuitTeardownCoordinator, type QuitTeardownTask } from './quit-teardown'
import {
backendQuitNeedsWait,
backendTeardownOptions,
createQuitTeardownCoordinator,
type QuitTeardownTask
} from './quit-teardown'
import * as remoteLifecycle from './remote-lifecycle'
import {
attachPowerResumeRemoteRevalidation,
@@ -3637,10 +3642,12 @@ function isLightVariant(): boolean {
/** Invalidate connections and wait for every owned backend before the swap. */
async function teardownBundledBackend(): Promise<void> {
isQuittingForHandoff = true
const results = await Promise.allSettled([
teardownPrimaryBackendAndWait(backendTeardownOptions('reconnect')),
stopAllPoolBackends()
])
const errors = results.filter(result => result.status === 'rejected').map(result => result.reason)
if (errors.length) {

View File

@@ -72,7 +72,9 @@ describe('default board event notifications', () => {
it.each(['empty', 'rejected'])('preserves the live alias socket when board resolution is %s', async mode => {
const rest = vi.fn(async (path: string) => {
if (path === '/boards') {
if (mode === 'rejected') {throw new Error('offline')}
if (mode === 'rejected') {
throw new Error('offline')
}
return { current: '' }
}
@@ -139,9 +141,13 @@ describe('default board event notifications', () => {
let latest = 100
const rest = vi.fn(async (path: string) => {
if (path === '/boards') {return { current: 'default', boards: [{ slug: 'default' }] }}
if (path === '/boards') {
return { current: 'default', boards: [{ slug: 'default' }] }
}
if (path === '/board?board=default' || path === '/board') {return { latest_event_id: latest }}
if (path === '/board?board=default' || path === '/board') {
return { latest_event_id: latest }
}
throw new Error(`Unexpected REST call: ${path}`)
})

View File

@@ -236,7 +236,9 @@ export function bindApi(
const selectedSlug = $boardSlug.get()
return socket(eventsUrl(slug, since), data => {
if (generation === socketGeneration) {onEventsFrame(scope, slug, data, selectedSlug)}
if (generation === socketGeneration) {
onEventsFrame(scope, slug, data, selectedSlug)
}
})
}