Skip to content

Commit c1fe7f7

Browse files
committed
fix(tests): resolve pre-existing test failures
- content-integrity.test.ts: Use __dirname instead of process.cwd() for correct path resolution when running from monorepo root - completions.test.ts: Add missing model field to non-streaming request body
1 parent e8eaabe commit c1fe7f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

web/src/__tests__/docs/content-integrity.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import path from 'path'
1010

1111
import matter from 'gray-matter'
1212

13-
const CONTENT_DIR = path.join(process.cwd(), 'src/content')
13+
// Use __dirname to get correct path regardless of where tests are run from
14+
const CONTENT_DIR = path.join(__dirname, '../../content')
1415
const VALID_SECTIONS = [
1516
'help',
1617
'tips',

web/src/app/api/v1/chat/completions/__tests__/completions.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ describe('/api/v1/chat/completions POST endpoint', () => {
467467
method: 'POST',
468468
headers: { Authorization: 'Bearer test-api-key-123' },
469469
body: JSON.stringify({
470+
model: 'test/test-model',
470471
stream: false,
471472
codebuff_metadata: {
472473
run_id: 'run-123',

0 commit comments

Comments
 (0)