test(cli): reduce repeated startup and filesystem setup

This commit is contained in:
morluto
2026-10-08 04:03:24 +08:00
parent 9c3479ed95
commit d88d6c1897
19 changed files with 409 additions and 677 deletions
-8
View File
@@ -1,7 +1,5 @@
import { describe, expect, it } from "vitest";
import { browserContext } from "./cliBrowserContext.js";
import { CdpBrowserProvider } from "./browser/CdpBrowserProvider.js";
import { HopperProvider } from "./hopper/HopperProvider.js";
import { silentLogger } from "./logger.js";
import { parseConfig } from "./config.js";
@@ -35,9 +33,3 @@ describe("host platform is injected, not read from the ambient process", () => {
},
);
});
describe("browser CLI provider setup", () => {
it("does not require permission policy configuration", () => {
expect(browserContext().provider).toBeInstanceOf(CdpBrowserProvider);
});
});