@@ -291,17 +291,21 @@ describe("bundled plugin postinstall", () => {
|
291 | 291 | await expect(fs.stat(stalePackage)).rejects.toMatchObject({ code: "ENOENT" }); |
292 | 292 | await expect(fs.stat(staleManifest)).rejects.toMatchObject({ code: "ENOENT" }); |
293 | 293 | await expect( |
294 | | -fs.stat(path.join(packageRoot, "dist", "extensions", "qa-channel", "runtime-api.js")), |
295 | | -).rejects.toMatchObject({ code: "ENOENT" }); |
| 294 | +fs.readFile(path.join(packageRoot, "dist", "extensions", "qa-channel", "runtime-api.js"), { |
| 295 | +encoding: "utf8", |
| 296 | +}), |
| 297 | +).resolves.toBe("export {};\n"); |
296 | 298 | await expect( |
297 | 299 | fs.stat(path.join(packageRoot, "dist", "extensions", "qa-channel", "package.json")), |
298 | 300 | ).rejects.toMatchObject({ code: "ENOENT" }); |
299 | 301 | await expect( |
300 | 302 | fs.stat(path.join(packageRoot, "dist", "extensions", "qa-channel", "openclaw.plugin.json")), |
301 | 303 | ).rejects.toMatchObject({ code: "ENOENT" }); |
302 | 304 | await expect( |
303 | | -fs.stat(path.join(packageRoot, "dist", "extensions", "qa-lab", "runtime-api.js")), |
304 | | -).rejects.toMatchObject({ code: "ENOENT" }); |
| 305 | +fs.readFile(path.join(packageRoot, "dist", "extensions", "qa-lab", "runtime-api.js"), { |
| 306 | +encoding: "utf8", |
| 307 | +}), |
| 308 | +).resolves.toBe("export {};\n"); |
305 | 309 | }); |
306 | 310 | |
307 | 311 | it("keeps packaged postinstall non-fatal when the dist inventory is missing", async () => { |
|