mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:40:42 +00:00
test: tighten qa lab staged root assertion
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user