Files
thinkrail/scripts/exactVersion.test.ts
danyaberezun 1411b94ce4 feat(web): add sticky activity breadcrumbs (#318)
* todo: Promote and approve the chosen design

ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_f81e2ecc4e8f

* todo: Implement sticky breadcrumbs test-first

ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_2af3cd24f64f

* todo: Verify and capture the breadcrumb UI

ThinkRail-Todo: 01a03f04-9a70-7c8d-a04e-dad7105ea6b8/t_f6334bfef2d9

* fix(e2e): keep breadcrumb fixture model-neutral

* fix(web): prevent long-chat crashes and resync compaction (#315)

* todo: Draft and validate the recovery design

ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_ba5a364c8500

* todo: Add a failing regression test

ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_498c28840f48

* todo: Implement the root-cause fix and update specs

ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_f78c9562ae5d

* todo: Run full verification and review the diff

ThinkRail-Todo: 01a03e67-0f3e-71f5-8113-71eac869713f/t_e4e4e40281d2

* fix(web): harden transcript resync

* fix(web): prioritize reconnect transcript safety

* feat(web): add an adaptive chat composer (#308)

* todo: Review mockups together and capture the chosen design

ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_fe1105319f17

* todo: Add failing tests for the approved behavior

ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_6b613c5bdfe3

* todo: Implement the global composer growth setting

ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_c6084ad8e5ad

* todo: Implement adaptive Composer layout and growth

ThinkRail-Todo: 01a03d5d-7d37-72f8-aaf2-9dcfca683610/t_65918e2ad100

* fix(web): finish adaptive composer phone behavior

* fix(deps): enforce one React runtime

* fix(web): defer streaming transcript sync
2026-08-27 02:22:51 +02:00

18 lines
556 B
TypeScript

import { expect, test } from "bun:test";
import { isExactVersion } from "./exactVersion";
test("exact versions include complete SemVer prerelease and build identifiers", () => {
for (const version of [
"19.2.8",
"19.3.0-canary-a1124489-20260826",
"1.0.0-alpha.1-feature-7+build.42-linux",
]) {
expect(isExactVersion(version)).toBe(true);
}
});
test("ranges and malformed versions are not exact pins", () => {
for (const version of ["^19.2.8", "~1.0.0", "19.3.x", "1.0.0-", "1.0", "latest"])
expect(isExactVersion(version)).toBe(false);
});