Skip to content

Commit 32d031b

Browse files
manovotnyclaude
andauthored
test(tanstack-react-start): match reworded missing secret key error (#9908)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b076445 commit 32d031b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎integration/tests/tanstack-start/keyless.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ test.describe('Keyless mode @tanstack-react-start', () => {
3535
const response = await page.goto(`${app.serverUrl}/`);
3636
expect(response?.status()).toBe(500);
3737
expect(app.devOutput).toContain('Missing secretKey');
38-
expect(app.devOutput).toContain('npx clerk@latest init');
38+
expect(app.devOutput).toContain('npx clerk@latest link');
3939
});
4040
});

‎packages/tanstack-react-start/src/server/__tests__/loadOptions.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ describe('loadOptions', () => {
1212
['only the secret key is missing', { publishableKey: 'pk_test_Zm9vLWJhci0xMi5jbGVyay5hY2NvdW50cy5kZXYk' }],
1313
['both keys are missing', {}],
1414
])('throws the CLI-pointing error when %s', (_, overrides) => {
15-
expect(() => loadOptions(request, overrides)).toThrow(/Missing secretKey[\s\S]*npx clerk@latest init/);
15+
expect(() => loadOptions(request, overrides)).toThrow(/Missing secretKey[\s\S]*npx clerk@latest link/);
1616
});
1717
});

0 commit comments

Comments
 (0)