From eec0d16458d01699f9d2ca08e8cbb1bea82129c2 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 22:47:02 +0100 Subject: [PATCH] test: complete backup asset helper --- src/commands/backup.test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/commands/backup.test.ts b/src/commands/backup.test.ts index 769ac8689d0..38ed4770db5 100644 --- a/src/commands/backup.test.ts +++ b/src/commands/backup.test.ts @@ -141,8 +141,15 @@ describe("backup commands", () => { expect(path.relative(included.sourcePath, skipped.sourcePath).startsWith("..")).toBe(false); } - function expectOnlyAssetKind(assets: Array<{ kind: string }>, kind: string) { - expect(assets).toStrictEqual([expect.objectContaining({ kind })]); + function expectOnlyAssetKind(assets: BackupAsset[], kind: BackupAsset["kind"]) { + expect(assets).toStrictEqual([ + { + kind, + sourcePath: expect.any(String), + displayPath: expect.any(String), + archivePath: expect.stringContaining("/payload/"), + }, + ]); } it("collapses default config, credentials, and workspace into the state backup root", async () => {