From 30914821ea4b131e81d7a9e6f68f0137eb7c3f4b Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Wed, 23 Sep 2026 16:24:16 -0500 Subject: [PATCH 1/2] test(tanstack-react-start): match reworded missing secret key error Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 832033f90b7425724223c7ac43647c0746c74f4a) --- .changeset/fix-tanstack-loadoptions-test.md | 2 ++ .../src/server/__tests__/loadOptions.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-tanstack-loadoptions-test.md diff --git a/.changeset/fix-tanstack-loadoptions-test.md b/.changeset/fix-tanstack-loadoptions-test.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/fix-tanstack-loadoptions-test.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/tanstack-react-start/src/server/__tests__/loadOptions.test.ts b/packages/tanstack-react-start/src/server/__tests__/loadOptions.test.ts index 09ff5aa0294..bcd979fe440 100644 --- a/packages/tanstack-react-start/src/server/__tests__/loadOptions.test.ts +++ b/packages/tanstack-react-start/src/server/__tests__/loadOptions.test.ts @@ -12,6 +12,6 @@ describe('loadOptions', () => { ['only the secret key is missing', { publishableKey: 'pk_test_Zm9vLWJhci0xMi5jbGVyay5hY2NvdW50cy5kZXYk' }], ['both keys are missing', {}], ])('throws the CLI-pointing error when %s', (_, overrides) => { - expect(() => loadOptions(request, overrides)).toThrow(/Missing secretKey[\s\S]*npx clerk@latest init/); + expect(() => loadOptions(request, overrides)).toThrow(/Missing secretKey[\s\S]*npx clerk@latest link/); }); }); From 876239e16517ba50d9e38f142158d03309516d55 Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Wed, 23 Sep 2026 16:39:04 -0500 Subject: [PATCH 2/2] test(e2e): match reworded missing secret key error in tanstack keyless test Co-Authored-By: Claude Opus 5.5 --- integration/tests/tanstack-start/keyless.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/tests/tanstack-start/keyless.test.ts b/integration/tests/tanstack-start/keyless.test.ts index 90309c9c72a..4427a4a1c6a 100644 --- a/integration/tests/tanstack-start/keyless.test.ts +++ b/integration/tests/tanstack-start/keyless.test.ts @@ -35,6 +35,6 @@ test.describe('Keyless mode @tanstack-react-start', () => { const response = await page.goto(`${app.serverUrl}/`); expect(response?.status()).toBe(500); expect(app.devOutput).toContain('Missing secretKey'); - expect(app.devOutput).toContain('npx clerk@latest init'); + expect(app.devOutput).toContain('npx clerk@latest link'); }); });