Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

469 B
Raw Blame
// SPDX-License-Identifier: FSL-1.1-MIT
// Copyright (c) 2026 Cua AI, Inc.

import { createFallbackSpacesBridge, type SpacesBridge } from "../native/spacesBridge";

/**
 * A SpacesBridge for tests: every command rejects or no-ops like the browser
 * fallback, then `overrides` supplies what a test actually drives.
 */
export function fakeSpacesBridge(overrides: Partial<SpacesBridge> = {}): SpacesBridge {
  return { ...createFallbackSpacesBridge(), ...overrides };
}