Skip to content

Conversation

cabljac
Copy link
Contributor

@cabljac cabljac commented Sep 26, 2025

This migration has failing tests. I believe for a background model action you have to call them as methods instead of destructuring.

The captureModelRunner function is returning an instance of BackgroundActionImpl at runtime, and if we destructure we lose it's this binding as we're creating a new object start

https://github.com/firebase/genkit/blob/main/js/core/src/background-action.ts#L107

results in undefined type errors in tests:

Screenshot 2025-09-26 at 16 07 35

TODO: on reflection I'm going to give the test changes in the base PR further review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant