Skip to content

Commit 2d675f7

Browse files
committed
docs: remove TEST_USER_ID references from TESTING.md
The TEST_USER_ID constant was removed from fixtures, so update the documentation examples to use inline test-user-id strings instead.
1 parent a14c96b commit 2d675f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

TESTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Test fixtures live in `common/src/testing/fixtures/` and provide consistent test
3838
```typescript
3939
// Recommended: import from the barrel export
4040
import {
41-
TEST_USER_ID,
4241
testLogger,
4342
createTestAgentRuntimeParams,
4443
createMockUser,
@@ -75,7 +74,6 @@ const params = createTestAgentRuntimeParams({
7574

7675
```typescript
7776
import {
78-
TEST_USER_ID, // Standard test user ID
7977
TEST_BILLING_USER_ID, // Billing-specific test user ID
8078
testLogger, // Silent logger
8179
createMockUser, // Factory for mock users
@@ -344,7 +342,7 @@ describe('triggerMonthlyResetAndGrant', () => {
344342
```typescript
345343
import { describe, expect, it, spyOn } from 'bun:test'
346344
import * as bigquery from '@codebuff/bigquery'
347-
import { TEST_USER_ID, createTestAgentRuntimeParams } from '@codebuff/common/testing/fixtures'
345+
import { createTestAgentRuntimeParams } from '@codebuff/common/testing/fixtures'
348346

349347
describe('loopAgentSteps', () => {
350348
beforeEach(() => {
@@ -354,7 +352,7 @@ describe('loopAgentSteps', () => {
354352

355353
it('calls LLM after STEP yield', async () => {
356354
const params = createTestAgentRuntimeParams({
357-
userId: TEST_USER_ID,
355+
userId: 'test-user-id', // Use inline string for test user IDs
358356
promptAiSdkStream: async function* () {
359357
yield { type: 'text', text: 'response' }
360358
yield createToolCallChunk('end_turn', {})

0 commit comments

Comments
 (0)