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 tests for custom functions #3

Open
zimeg opened this issue Jan 30, 2023 · 0 comments
Open

Add tests for custom functions #3

zimeg opened this issue Jan 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@zimeg
Copy link
Member

zimeg commented Jan 30, 2023

To ensure stable logic and proper error handling in custom functions, tests should be added with mocks of API endpoints.

These tests should cover the happy path and ensure APIs are called with the correct data the appropriate number of times (for example, conversations.join should be called for each listed channel in the maintain_membership.ts function). Error handling should also be tested, particularly for external auth related functionality.

After adding tests, a section on testing should be added to the README.

@zimeg zimeg added the enhancement New feature or request label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant