test(commands): import backup module after tar mocks

This commit is contained in:
Vincent Koc
2026-04-12 12:25:09 +01:00
parent 74f31241ed
commit bf6116af3f
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ import os from "node:os";
import path from "node:path";
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { createTempHomeEnv, type TempHomeEnv } from "../test-utils/temp-home.js";
import { backupCreateCommand } from "./backup.js";
import {
backupVerifyCommandMock,
createBackupTestRuntime,
@@ -11,6 +10,8 @@ import {
tarCreateMock,
} from "./backup.test-support.js";
const { backupCreateCommand } = await import("./backup.js");
describe("backupCreateCommand atomic archive write", () => {
let tempHome: TempHomeEnv;

View File

@@ -11,7 +11,6 @@ import {
resolveBackupPlanFromPaths,
resolveBackupPlanFromDisk,
} from "./backup-shared.js";
import { backupCreateCommand } from "./backup.js";
import {
backupVerifyCommandMock,
createBackupTestRuntime,
@@ -19,6 +18,8 @@ import {
tarCreateMock,
} from "./backup.test-support.js";
const { backupCreateCommand } = await import("./backup.js");
describe("backup commands", () => {
let tempHome: TempHomeEnv;