Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"mode": "pre",
"mode": "exit",
"tag": "next"
}
8 changes: 7 additions & 1 deletion scripts/__tests__/sync-quick-reference-release.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { fileURLToPath } from 'node:url';
import {
assignSlots,
derivedLiteralsByRow,
normalize,
readAnchors,
syncDoc,
VERSION_LITERAL,
Expand Down Expand Up @@ -144,7 +145,12 @@ describe('a release bump carries the doc with it', () => {
expect(result.refusals).toEqual([]);
expect(result.changes).toEqual([{ label: 'Version', from: anchors.version, to: '99.9.9' }]);
expect(result.doc).toContain(`- **Version:** 99.9.9 (the version every`);
expect(result.doc).not.toContain(anchors.version);
// Whole literals, never a raw substring, as the gate compares them. The
// group's version can be a prefix of another row's literal (the group at
// `18.0.0` beside a `^18.0.0-next.N` spec range), and a substring check then
// reddened the release lane's validation on a correct rewrite (objectui#13108).
const literals = [...result.doc.matchAll(VERSION_LITERAL)].map((match) => normalize(match[0]));
expect(literals).not.toContain(anchors.version);
});

/**
Expand Down
Loading