Skip to content

TestWatcher

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/autonomous/test-watcher.ts

Methods

MethodSignatureReturns
onFileEditedonFileEdited(toolName: string)void
disposedispose()void
getLastResultgetLastResult()`TestRunResult
isRunningisRunning()boolean

Where it refuses work

  • TestWatcher stops the work with an early return when this.disposed, in 3 places.
  • TestWatcher stops the work with an early return when !this.config.enabled || this.disposed.
  • TestWatcher stops the work with an early return when !LintTestLoop.isEditTool(toolName) && toolName !== 'create_file'.

When something fails

  • TestWatcher handles failure in 5 places: it discards it silently in all 5.

Was this page helpful?

Download as PDF