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/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'); }); }); 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/); }); });