test: tighten qa lab staged root assertion

This commit is contained in:
Shakker
2026-05-08 16:20:20 +01:00
parent 838b546778
commit f56f1dd161

View File

@@ -972,11 +972,7 @@ describe("qa bundled plugin dir", () => {
expect(stagedRoot).toBe(
path.join(repoRoot, ".artifacts", "qa-runtime", path.basename(tempRoot)),
);
expect(stagedRoot).not.toBeNull();
if (!stagedRoot) {
throw new Error("expected staged runtime root");
}
await expect(readFile(path.join(stagedRoot, "package.json"), "utf8")).resolves.toContain(
await expect(readFile(path.join(stagedRoot!, "package.json"), "utf8")).resolves.toContain(
'"name": "openclaw"',
);
await expect(