mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:20:43 +00:00
test(commands): import backup module after tar mocks
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user