test: trim more extension mock imports

This commit is contained in:
Peter Steinberger
2026-04-03 19:34:47 +01:00
parent a8302e8eab
commit cc62fd38f6
10 changed files with 39 additions and 20 deletions

View File

@@ -74,8 +74,8 @@ describe("openshell cli helpers", () => {
describe("openshell backend manager", () => {
beforeAll(async () => {
vi.doMock("./cli.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("./cli.js")>();
vi.doMock("./cli.js", async () => {
const actual = await vi.importActual<typeof import("./cli.js")>("./cli.js");
return {
...actual,
runOpenShellCli: cliMocks.runOpenShellCli,