Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c4ad09d
feat(js/testing): add mockModel + echoModel to genkit/testing
cabljac Jun 2, 2026
21b61b6
fix(js/testing): address review — preserve tool input, copy requests …
cabljac Jun 3, 2026
4a38044
refactor(js/testing): rename lastMessage to lastRequestMessage
cabljac Jun 3, 2026
a318148
refactor(js/testing): address review on mockModel/echoModel
cabljac Jun 3, 2026
7e563a0
fix(js/testing): render resource and custom parts in echoModel
cabljac Jun 3, 2026
300525b
docs(js/testing): upgrade testing-sample to demonstrate real value
cabljac Jun 3, 2026
cfeb5c1
feat(js/testing): guard echoModel under output schema + add lastReque…
cabljac Jun 3, 2026
97132a6
fix(js/testing): harden mockModel views and request rendering
cabljac Jul 1, 2026
4a45f21
test(js/testing): cover interrupt round-trip and agent handoff with m…
cabljac Jul 1, 2026
26df305
feat(js/testing): add response queue, toolResponses inspection, error…
cabljac Jul 1, 2026
d36b112
docs(js/testing): demonstrate queue, error injection, toolResponses, …
cabljac Jul 1, 2026
e840362
fix(js/testing): clone requests defensively and guard falsy respond r…
cabljac Jul 1, 2026
3bd9e54
chore(js/testing): add testing-sample to the pnpm lockfile
cabljac Jul 1, 2026
8f00ad6
feat(js/testing): default mockModel to constrained: 'all'
cabljac Jul 1, 2026
fd3ed5b
test(js/testing): migrate agent-handoff test off removed Chat API
cabljac Jul 1, 2026
c29ce42
feat(js/testing): resettable mocks - reset() + respondWith() on MockM…
cabljac Jul 2, 2026
44e4bb4
refactor(js/testing): testing-sample to standard singleton + register…
cabljac Jul 2, 2026
626704f
docs(js/testing): state per-file isolation mechanism precisely
cabljac Jul 2, 2026
8fb0acd
ci(js): run testing-sample tests in test:all
cabljac Jul 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions js/ai/src/testing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,16 @@
* limitations under the License.
*/

export {
echoModel,
mockModel,
type EchoModelOptions,
type MockChunk,
type MockContext,
type MockModel,
type MockModelOptions,
type MockRespond,
type MockRespondFn,
type MockResponse,
} from './mock-model.js';
export { testModels } from './model-tester.js';
Loading
Loading