mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 11:41:13 +00:00
refactor: delete dead infra and config exports (#106019)
* refactor: delete dead infra and config exports * refactor: preserve live infra and config contracts * refactor(config): remove obsolete file-store lifecycle APIs * refactor(infra): finish current-main dead export cleanup
This commit is contained in:
committed by
GitHub
parent
8dd57279cd
commit
d1684f48a3
@@ -3,7 +3,7 @@ import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import process from "node:process";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { createTrackedTempDirs } from "../test-utils/tracked-temp-dirs.js";
|
||||
|
||||
const tempDirs = createTrackedTempDirs();
|
||||
@@ -58,26 +58,19 @@ async function makeFakeOpenClawPackage(root: string) {
|
||||
|
||||
describe("git commit resolution", () => {
|
||||
let resolveCommitHash: (typeof import("./git-commit.js"))["resolveCommitHash"];
|
||||
let testing: (typeof import("./git-commit.js"))["testing"];
|
||||
|
||||
beforeAll(async () => {
|
||||
vi.doUnmock("node:fs");
|
||||
vi.doUnmock("node:module");
|
||||
({ resolveCommitHash, testing } = await import("./git-commit.js"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
beforeEach(async () => {
|
||||
vi.restoreAllMocks();
|
||||
vi.doUnmock("node:fs");
|
||||
vi.doUnmock("node:module");
|
||||
testing.clearCachedGitCommits();
|
||||
vi.resetModules();
|
||||
({ resolveCommitHash } = await import("./git-commit.js"));
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
vi.restoreAllMocks();
|
||||
vi.doUnmock("node:fs");
|
||||
vi.doUnmock("node:module");
|
||||
testing.clearCachedGitCommits();
|
||||
await tempDirs.cleanup();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user