mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-09 09:30:41 -07:00
chore(deps): pin dependencies and enforce 14-day update cooldown (#27948)
This commit is contained in:
@@ -49,7 +49,7 @@ describe('GeminiCliAgent Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
// Expect pirate speak
|
||||
@@ -80,7 +80,7 @@ describe('GeminiCliAgent Integration', () => {
|
||||
}
|
||||
const responseText1 = events1
|
||||
.filter((e) => e.type === 'content')
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
expect(responseText1).toContain('1');
|
||||
@@ -93,7 +93,7 @@ describe('GeminiCliAgent Integration', () => {
|
||||
}
|
||||
const responseText2 = events2
|
||||
.filter((e) => e.type === 'content')
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
expect(responseText2).toContain('2');
|
||||
@@ -132,7 +132,7 @@ describe('GeminiCliAgent Integration', () => {
|
||||
|
||||
const responseText = events2
|
||||
.filter((e) => e.type === 'content')
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
expect(responseText).toContain('BANANA');
|
||||
|
||||
@@ -50,7 +50,7 @@ describe('GeminiCliAgent Skills Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
// Expect pirate speak
|
||||
@@ -83,7 +83,7 @@ describe('GeminiCliAgent Skills Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
// Expect confirmation or pirate speak
|
||||
|
||||
@@ -53,7 +53,7 @@ describe('GeminiCliAgent Tool Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
expect(responseText).toContain('8');
|
||||
@@ -98,7 +98,7 @@ describe('GeminiCliAgent Tool Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
// The model should see the error "Tool failed visibly" and report it back.
|
||||
@@ -140,7 +140,7 @@ describe('GeminiCliAgent Tool Integration', () => {
|
||||
|
||||
const textEvents = events.filter((e) => e.type === 'content');
|
||||
const responseText = textEvents
|
||||
.map((e) => (typeof e.value === 'string' ? e.value : ''))
|
||||
.map((e) => ('value' in e && typeof e.value === 'string' ? e.value : ''))
|
||||
.join('');
|
||||
|
||||
// The model should report the caught standard error.
|
||||
|
||||
Reference in New Issue
Block a user