Skip to content

Commit 05ab518

Browse files
authored
test(auto-reply): canonicalize session export expectations (#118138)
1 parent db7a3aa commit 05ab518

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/auto-reply/reply/commands-export-session-file.test-support.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("writeSessionExportFile", () => {
3838
const result = await writeExport({ workspaceDir, requestedPath: targetPath });
3939

4040
expect(result).toEqual({
41-
absolutePath: path.join(workspaceDir, "exports", "session.html"),
41+
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
4242
displayPath: path.join("exports", "session.html"),
4343
});
4444
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");
@@ -86,7 +86,7 @@ describe("writeSessionExportFile", () => {
8686
const result = await writeExport({ workspaceDir: workspaceAlias, requestedPath });
8787

8888
expect(result).toEqual({
89-
absolutePath: path.join(workspaceDir, "exports", "session.html"),
89+
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
9090
displayPath: path.join("exports", "session.html"),
9191
});
9292
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");

0 commit comments

Comments
 (0)