mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 18:33:37 +00:00
fix: honor test planner cache paths by target platform
This commit is contained in:
@@ -421,6 +421,19 @@ describe("resolveVitestFsModuleCachePath", () => {
|
||||
).toBe("/repo/node_modules/.experimental-vitest-cache/unit-fast-1");
|
||||
});
|
||||
|
||||
it("honors the requested Windows platform when building the cache path", () => {
|
||||
expect(
|
||||
resolveVitestFsModuleCachePath({
|
||||
cwd: "/repo",
|
||||
env: {
|
||||
OPENCLAW_VITEST_FS_MODULE_CACHE: "1",
|
||||
},
|
||||
platform: "win32",
|
||||
unitId: "unit-fast-1",
|
||||
}),
|
||||
).toBe("\\repo\\node_modules\\.experimental-vitest-cache\\unit-fast-1");
|
||||
});
|
||||
|
||||
it("respects an explicit cache path override", () => {
|
||||
expect(
|
||||
resolveVitestFsModuleCachePath({
|
||||
|
||||
Reference in New Issue
Block a user