Skip to content

Commit 140e2d7

Browse files
committed
add snapshot manager tests
1 parent c3dbb8a commit 140e2d7

File tree

4 files changed

+709
-17
lines changed

4 files changed

+709
-17
lines changed

packages/cli-v3/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"typecheck": "tsc -p tsconfig.src.json --noEmit",
7171
"build": "tshy && pnpm run update-version",
7272
"dev": "tshy --watch",
73+
"test": "vitest",
7374
"test:e2e": "vitest --run -c ./e2e/vitest.config.ts",
7475
"update-version": "tsx ../../scripts/updateVersion.ts"
7576
},

packages/cli-v3/src/entryPoints/managed/execution.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,9 @@ export class RunExecution {
892892
}
893893

894894
private set suspendable(suspendable: boolean) {
895-
this.snapshotManager?.setSuspendable(suspendable);
895+
this.snapshotManager?.setSuspendable(suspendable).catch((error) => {
896+
this.sendDebugLog("failed to set suspendable", { error: error.message });
897+
});
896898
}
897899

898900
// Ensure we can only set this once

0 commit comments

Comments
 (0)