- MCP
- blame on this site's /mcp
- CLI
- abso blame client/test/push-ci-where.test.ts --json
- JSON
- /christopher/abso-core/blame/client/test/push-ci-where.test.ts?format=json
23 linesonboard 100%Last change onboard in version 225,
23 lines from 1 change in 1 version.
onboard225push: after Pushed version N., say whether CI will check it, when the server's answer says where CI runs (ciWhere). off: CI is off for this project, so version N isn't checked; connect a Cloudflare account in the project's settings on the website to run it there. account: CI checks it in the project's Cloudflare account; abso ci N shows the result. The server's own compute, or a server that doesn't say, adds nothing, as before. --json carries ciWhere. Tests: client/test/push-ci-where.test.ts (3).Compare1// After "Pushed version N.", the push says whether CI will check it, from the server's `ciWhere`.
3import assert from "node:assert/strict";
4import { test } from "node:test";
5import { ciWhereText } from "../src/publish-commands.ts";
7test("CI off: the version isn't checked, and where to turn it on", () => {
8 assert.deepEqual(ciWhereText("off", 1), [
9 "CI is off for this project, so version 1 isn't checked. Connect a Cloudflare account in the project's settings on the website to run it there.",
10 ]);
11});
13test("CI in the project's Cloudflare account: where to see the result", () => {
14 assert.deepEqual(ciWhereText("account", 7), [
15 "CI checks it in the project's Cloudflare account: abso ci 7 shows the result.",
16 ]);
17});
19test("the server's own compute, a server that doesn't say, or a word this client doesn't know: nothing added", () => {
20 assert.deepEqual(ciWhereText("abso", 3), []);
21 assert.deepEqual(ciWhereText(undefined, 3), []);
22 assert.deepEqual(ciWhereText("somewhere-new", 3), []);
23});