dify/cli/src/commands/run/app/agent-guide.test.ts
Yunlu Wen c0ee821d45
refactor: use absolute path for inter dir importing (#36822)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-01 01:32:16 +00:00

21 lines
601 B
TypeScript

import { describe, expect, it } from 'vitest'
import RunApp from './index'
describe('run app agentGuide', () => {
it('exposes non-empty agentGuide string', () => {
const guide = new RunApp().agentGuide()
expect(typeof guide).toBe('string')
expect(guide.length).toBeGreaterThan(0)
})
it('agentGuide mentions WORKFLOW section', () => {
const guide = new RunApp().agentGuide()
expect(guide).toContain('WORKFLOW')
})
it('agentGuide mentions ERROR RECOVERY section', () => {
const guide = new RunApp().agentGuide()
expect(guide).toContain('ERROR RECOVERY')
})
})