mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
test(cli): preserve real engine exports in browser fallback fixture
This commit is contained in:
@@ -18,10 +18,8 @@ vi.mock("../browser/manager.js", () => ({
|
||||
|
||||
vi.mock("puppeteer-core", () => ({ default: { launch: mocks.launch } }));
|
||||
|
||||
// captureCompositionFrame.js imports these two from ../browser/gpuPolicy.js,
|
||||
// which re-exports them from this mocked module — unmocked here, they'd read
|
||||
// undefined and throw as soon as openSettledCompositionPage calls them.
|
||||
vi.mock("@hyperframes/engine", () => ({
|
||||
vi.mock("@hyperframes/engine", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("@hyperframes/engine")>()),
|
||||
buildChromeArgs: mocks.buildChromeArgs,
|
||||
resolveBrowserGpuMode: mocks.resolveBrowserGpuMode,
|
||||
compositionRequiresWebGpu: mocks.compositionRequiresWebGpu,
|
||||
|
||||
Reference in New Issue
Block a user