What is it?
You can now use a new suite of comprehensive testing utilities built into the HubSpot UI Extensions SDK. These tools make it easier for you to write, run, and maintain automated tests for your custom UI extensions.
With these new testing utilities, you can:
- Build with confidence. Catch bugs before they reach production.
- Refactor safely. Make changes knowing your tests will detect regressions.
- Document behavior. Use your tests as executable documentation that clearly describes how your extensions work.
- Move faster. Automate your testing process to save time and get consistent results every time.
- Improve quality. Deliver well-tested extensions that are more reliable and easier to maintain.
Why does it matter?
With these testing tools, you can simulate HubSpot APIs and hooks, test user interactions, and verify component behavior directly within your development environment. This means you can confidently ship extensions that are stable, reliable, and easy to maintain over time.
How does it work?
The UI Extensions SDK now includes testing utilities that let you automate testing for your UI Extensions. All HubSpot APIs and hooks are automatically mocked, allowing you to easily query, trigger events, and verify component behavior, all with full TypeScript type safety.
Who gets it?
These testing utilities are available to all hubs and tiers.