mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
* Changes from fix/cursor-fix * feat: Enhance provider error messages with diagnostic context, address test failure, fix port change, move playwright tests to different port * Update apps/ui/src/components/views/board-view/dialogs/add-feature-dialog.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * ci: Update test server port from 3008 to 3108 and add environment configuration * fix: Correct typo in health endpoint URL and standardize port env vars --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
21 lines
823 B
TypeScript
21 lines
823 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { normalizeThinkingLevelForModel } from '@automaker/types';
|
|
|
|
describe('normalizeThinkingLevelForModel', () => {
|
|
it('preserves explicitly selected none for Opus models', () => {
|
|
expect(normalizeThinkingLevelForModel('claude-opus', 'none')).toBe('none');
|
|
});
|
|
|
|
it('falls back to none when Opus receives an unsupported manual thinking level', () => {
|
|
expect(normalizeThinkingLevelForModel('claude-opus', 'medium')).toBe('none');
|
|
});
|
|
|
|
it('keeps adaptive for Opus when adaptive is selected', () => {
|
|
expect(normalizeThinkingLevelForModel('claude-opus', 'adaptive')).toBe('adaptive');
|
|
});
|
|
|
|
it('preserves supported manual levels for non-Opus models', () => {
|
|
expect(normalizeThinkingLevelForModel('claude-sonnet', 'high')).toBe('high');
|
|
});
|
|
});
|