Skip to content
Myr

revision.test.ts

This file

Path

packages/artifacts/test/revision.test.ts

26 lines · 793 bytes · TypeScript

Last changed by

Merge build/comments-packages-rest into mainoscabrielbefore adoption38cd503

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–12why, one step back
1import { describe, expect, it } from "@effect/vitest";
2import * as Ids from "@repo/protocol/ids";3import { Schema } from "effect";45import { BranchName, RepoName } from "../src/repo-host.ts";67describe("a repo name", () => {8 it("is the domain's RepoName", () => {9 expect(RepoName).toBe(Ids.RepoName);10 });11});12

Drop the private build plan's citations from the code, and fail verify if one comes backoscabrielbefore adoptiona29cef6

line 13why, one step back
13// Artifacts' binding resolves short branch names and commit ids only,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 14–26why, one step back
14// so a full ref name cannot be a revision.
15describe("a branch revision", () => {16 it.each(["main", "feature/parser", "asked-landed"])("takes %s", (name) => {17 expect(Schema.is(BranchName)(name)).toBeTruthy();18 });1920 it.each(["refs/heads/main", "refs/asked/landed", "refs/notes/commits", ""])(21 "refuses %j",22 (name) => {23 expect(Schema.is(BranchName)(name)).toBeFalsy();24 }25 );26});