Add @trigger.dev/testing package#432
Conversation
🦋 Changeset detectedLatest commit: 9e30181 The changes in this PR will be included in the next version bump. This PR includes changesets to release 29 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
matt-aitken
left a comment
There was a problem hiding this comment.
Unfortunately we made some changes to how integrations work – they now don't have explicit Tasks. Tasks can be structured however an author wants, including nested.
I've made a suggestion about mocking io.runTask
|
Well, I guess that was bad timing. @matt-aitken thanks for updating the dummy integration and pointers re the new format. Wasn't a trivial fix indeed. Minor API change: Function spies are now exposed and indexed via their key on I've also added tests to the package itself, so it doesn't have to be constantly rebuilt for testing during dev. |
matt-aitken
left a comment
There was a problem hiding this comment.
This is a great PR @nicktrn. Thanks for adapting it so quickly after we changed how integration tasks work.
|
Thank you kindly! 🎩 |
As ordered.
Leaving this in draft as I won't be available for a few days. Should be ready though, so feel free to test and review!
Fixes #379
/claim #379