Skip to content

Commit e4309e0

Browse files
authored
test(claws): canonicalize bootstrap export fixture path (#120644)
1 parent 3e0504d commit e4309e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/claws/export.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createHash } from "node:crypto";
2-
import { mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
2+
import { mkdir, readFile, realpath, rm, stat, writeFile } from "node:fs/promises";
33
import { dirname, join } from "node:path";
44
import { afterEach, describe, expect, it, vi } from "vitest";
55
import { useAutoCleanupTempDirTracker } from "../../test/helpers/temp-dir.js";
@@ -124,7 +124,7 @@ async function installedFixture(
124124
? {
125125
packageBootstrap: {
126126
sourcePath: "BOOTSTRAP.md",
127-
realPath: packageBootstrapPath,
127+
realPath: await realpath(packageBootstrapPath),
128128
byteLength: packageBootstrapContent.byteLength,
129129
digest: `sha256:${createHash("sha256").update(packageBootstrapContent).digest("hex")}`,
130130
},

0 commit comments

Comments
 (0)