mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:28:26 +00:00
perf(test): trim module resets in config suites
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import path from "node:path";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { withTempHome } from "../../test/helpers/temp-home.js";
|
||||
import { normalizeConfigPaths } from "./normalize-paths.js";
|
||||
|
||||
describe("normalizeConfigPaths", () => {
|
||||
it("expands tilde for path-ish keys only", async () => {
|
||||
await withTempHome(async (home) => {
|
||||
vi.resetModules();
|
||||
const { normalizeConfigPaths } = await import("./normalize-paths.js");
|
||||
|
||||
const cfg = normalizeConfigPaths({
|
||||
tools: { exec: { pathPrepend: ["~/bin"] } },
|
||||
plugins: { load: { paths: ["~/plugins/a"] } },
|
||||
|
||||
Reference in New Issue
Block a user