mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
* fix(plugins): localize bundled runtime deps to extensions * fix(plugins): move staged runtime deps out of root * fix(packaging): harden prepack and runtime dep staging * fix(packaging): preserve optional runtime dep staging * Update CHANGELOG.md * fix(packaging): harden runtime staging filesystem writes * fix(docker): ship preinstall warning in bootstrap layers * fix(packaging): exclude staged plugin node_modules from npm pack
22 lines
792 B
TypeScript
22 lines
792 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { collectPreparedPrepackErrors } from "../scripts/openclaw-prepack.ts";
|
|
|
|
describe("collectPreparedPrepackErrors", () => {
|
|
it("accepts prepared release artifacts", () => {
|
|
expect(
|
|
collectPreparedPrepackErrors(
|
|
["dist/index.mjs", "dist/control-ui/index.html"],
|
|
["dist/control-ui/assets/index-Bu8rSoJV.js"],
|
|
),
|
|
).toEqual([]);
|
|
});
|
|
|
|
it("reports missing build and control ui artifacts", () => {
|
|
expect(collectPreparedPrepackErrors([], [])).toEqual([
|
|
"missing required prepared artifact: dist/index.js or dist/index.mjs",
|
|
"missing required prepared artifact: dist/control-ui/index.html",
|
|
"missing prepared Control UI asset payload under dist/control-ui/assets/",
|
|
]);
|
|
});
|
|
});
|