test(cli): add response-time contract for CLI surfaces

This commit is contained in:
Vincent Koc
2026-05-10 23:05:55 +08:00
parent b5633698e2
commit 97283f0a2e
5 changed files with 526 additions and 101 deletions

View File

@@ -162,6 +162,18 @@ describe("resolveBuildAllSteps", () => {
]);
});
it("uses a CLI startup profile without generated plugin assets", () => {
expect(resolveBuildAllSteps("cliStartup").map((step) => step.label)).toEqual([
"tsdown",
"check-cli-bootstrap-imports",
"runtime-postbuild",
"build-stamp",
"runtime-postbuild-stamp",
"write-cli-startup-metadata",
"write-cli-compat",
]);
});
it("writes the runtime postbuild stamp after the build stamp", () => {
const labels = resolveBuildAllSteps("full").map((step) => step.label);
expect(labels).toContain("runtime-postbuild");