Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inngest.experimental.mocked #152

Merged
merged 8 commits into from
Oct 14, 2024
Merged

Add inngest.experimental.mocked #152

merged 8 commits into from
Oct 14, 2024

Conversation

amh4r
Copy link
Collaborator

@amh4r amh4r commented Sep 4, 2024

Add the experimental mocked library, which can be used to unit test Inngest functions. It will execute an Inngest function without needing an Inngest server.

To see its usage, look at inngest/experimental/mocked/trigger_test.py

@amh4r amh4r requested a review from djfarrelly October 4, 2024 19:14
@amh4r amh4r merged commit 95afd17 into main Oct 14, 2024
10 checks passed
@amh4r amh4r deleted the mocked branch October 14, 2024 13:20
jpwilliams added a commit to inngest/inngest-js that referenced this pull request Oct 21, 2024
## Summary
<!-- Succinctly describe your change, providing context, what you've
changed, and why. -->

The initial bare-bones release of `@inngest/test` based on the RFC at
inngest/inngest#1680 following the preliminary changes to open up the
execution APIs in #688.

To see how to use the library in its current state, see
[`README.md`](https://github.com/inngest/inngest-js/tree/feat/inngest-test/packages/test).

## Checklist
<!-- Tick these items off as you progress. -->
<!-- If an item isn't applicable, ideally please strikeout the item by
wrapping it in "~~"" and suffix it with "N/A My reason for skipping
this." -->
<!-- e.g. "- [ ] ~~Added tests~~ N/A Only touches docs" -->

- [ ] ~Added a [docs PR](https://github.com/inngest/website) that
references this PR~ N/A Package has a readme - will follow up with docs
- [ ] ~Added unit/integration tests~ N/A Package still `0.` - will pad
out utests later
- [x] Added changesets if applicable

## Related
<!-- A space for any related links, issues, or PRs. -->
<!-- Linear issues are autolinked. -->
<!-- e.g. - INN-123 -->
<!-- GitHub issues/PRs can be linked using shorthand. -->
<!-- e.g. "- inngest/inngest#123" -->
<!-- Feel free to remove this section if there are no applicable related
links.-->
- Follows #688
- Based on RFC at inngest/inngest#1680
- Python: inngest/inngest-py#152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants