Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

ci: register the heading-truncation guard in the structural test selector (#5694)

[._.]/ Adam Eivyf401dea8e68d
diff --git a/scripts/ci-test-plan.js b/scripts/ci-test-plan.js
index bdac83b5df..356259da73 100644
--- a/scripts/ci-test-plan.js
+++ b/scripts/ci-test-plan.js
@@ -271,11 +271,12 @@ const structuralTestsFor = (changedFiles, trackedSet) => {
// Both `.js` and `.jsx`: the StrictMode mounted-ref bug the first guard covers
// reached its widest blast radius through a plain-`.js` hook (`useAsyncAction`),
// so a `.jsx`-only trigger would miss the case that matters most, and the
- // responsive-grid, popover-clamp, and safe-storage guards read class strings
- // and storage accesses out of both extensions. None of these files has a source
- // sibling or imports an app module, so nothing else selects them — without this
- // entry they only ever run on a full suite.
+ // responsive-grid, popover-clamp, safe-storage, and heading-truncation guards
+ // read class strings, storage accesses, and JSX markup out of both extensions.
+ // None of these files has a source sibling or imports an app module, so nothing
+ // else selects them — without this entry they only ever run on a full suite.
if (changedFiles.some((path) => /^client\/src\/.*\.jsx?$/.test(path))) {
+ add('client/src/headingTruncationConventions.test.js');
add('client/src/hooks/mountedRefConventions.test.js');
add('client/src/popoverClampConventions.test.js');
add('client/src/responsiveGridConventions.test.js');
diff --git a/scripts/repo-scan-guards.test.js b/scripts/repo-scan-guards.test.js
index 8350a43d3a..9b586666ac 100644
--- a/scripts/repo-scan-guards.test.js
+++ b/scripts/repo-scan-guards.test.js
@@ -38,6 +38,7 @@ const STRUCTURALLY_SELECTED = new Map([
// client/src/**.jsx (a11y) or .js/.jsx (mounted-ref) file changes, which is
// the only way either can start failing.
['client/src/a11yConventions.test.js', 'structuralTestsFor: client/src/**.jsx'],
+ ['client/src/headingTruncationConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/hooks/mountedRefConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/popoverClampConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],
['client/src/responsiveGridConventions.test.js', 'structuralTestsFor: client/src/**.js(x)'],