Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test: use placeholder URLs in fixtures (#8486)

Cindy Zhang52c1b24fb8d8
diff --git a/.github/scripts/pages-landing.test.mjs b/.github/scripts/pages-landing.test.mjs
index 08c974ce1f..ed6cc6e139 100644
--- a/.github/scripts/pages-landing.test.mjs
+++ b/.github/scripts/pages-landing.test.mjs
@@ -190,7 +190,13 @@ describe('GitHub Pages compatibility landing', () => {
expect(document.querySelector('meta[name="robots"]')?.content).toBe(
'noindex, follow',
);
- expect(PAGE).not.toMatch(/internalfb|localhost|@xds|@nest/i);
+ // Only public hosts: no loopback, private-suffix or "internal" host.
+ expect(PAGE).not.toMatch(
+ /\b(?:localhost|(?:[a-z0-9-]+\.)+(?:internal|local|lan|corp)|[a-z0-9.-]*internal[a-z0-9.-]*\.[a-z]{2,})\b/i,
+ );
+ // The only package scope it may name is Astryx's own.
+ expect(PAGE).not.toMatch(/@(?!astryxdesign\/)[a-z0-9-]+\/[a-z]/i);
+ expect(PAGE).not.toMatch(/@xds/i);
});
it.each([
diff --git a/internal/a11y-spec/src/contract.test.ts b/internal/a11y-spec/src/contract.test.ts
index bea9c542a0..2c60dab756 100644
--- a/internal/a11y-spec/src/contract.test.ts
+++ b/internal/a11y-spec/src/contract.test.ts
@@ -219,7 +219,7 @@ describe('definePattern', () => {
['docs/families/probes.md'],
// Not public: a reviewer of this repository cannot open it, and it must
// never appear in it.
- ['https://www.internalfb.com/code/astryx/docs/families/probes.md'],
+ ['https://code.example.internal/astryx/docs/families/probes.md'],
['http://github.com/facebook/astryx/blob/' + PIN + '/docs/x.md'],
// Every one of these moves out from under the quote.
['https://github.com/facebook/astryx/blob/main/docs/x.md'],
diff --git a/scripts/format-changelogs.mjs b/scripts/format-changelogs.mjs
index 0d2456e2ed..786a9879de 100755
--- a/scripts/format-changelogs.mjs
+++ b/scripts/format-changelogs.mjs
@@ -11,7 +11,7 @@
*
* ### Patch Changes
*
- * - [fix] XDSButton: spinner contrast (#2717) — thanks @cindyxz
+ * - [fix] XDSButton: spinner contrast (#2717) — thanks @cixzhang
* - [breaking] Stack element -> as (#2441) — thanks @ejhammond
*
* This rewrites the just-added version block of every package CHANGELOG into
@@ -32,7 +32,7 @@
*
* Thanks to everyone who contributed to this release:
*
- * - @cindyxz
+ * - @cixzhang
* - @ejhammond
*
* --- (divider before the previous version)