test(auto-reply): canonicalize session export expectations (#118138)

This commit is contained in:
Peter Steinberger
2026-08-02 12:25:13 -07:00
committed by GitHub
parent db7a3aa67c
commit 05ab518109
@@ -38,7 +38,7 @@ describe("writeSessionExportFile", () => {
const result = await writeExport({ workspaceDir, requestedPath: targetPath });
expect(result).toEqual({
absolutePath: path.join(workspaceDir, "exports", "session.html"),
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
displayPath: path.join("exports", "session.html"),
});
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");
@@ -86,7 +86,7 @@ describe("writeSessionExportFile", () => {
const result = await writeExport({ workspaceDir: workspaceAlias, requestedPath });
expect(result).toEqual({
absolutePath: path.join(workspaceDir, "exports", "session.html"),
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
displayPath: path.join("exports", "session.html"),
});
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");