test: tighten qa lab staged root assertion · openclaw/openclaw@f56f1dd
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -972,11 +972,7 @@ describe("qa bundled plugin dir", () => {
|
972 | 972 | expect(stagedRoot).toBe( |
973 | 973 | path.join(repoRoot, ".artifacts", "qa-runtime", path.basename(tempRoot)), |
974 | 974 | ); |
975 | | -expect(stagedRoot).not.toBeNull(); |
976 | | -if (!stagedRoot) { |
977 | | -throw new Error("expected staged runtime root"); |
978 | | -} |
979 | | -await expect(readFile(path.join(stagedRoot, "package.json"), "utf8")).resolves.toContain( |
| 975 | +await expect(readFile(path.join(stagedRoot!, "package.json"), "utf8")).resolves.toContain( |
980 | 976 | '"name": "openclaw"', |
981 | 977 | ); |
982 | 978 | await expect( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。