What problem does it solve?
This Skill streamlines the process of writing comprehensive tests for Stratal applications, ensuring reliability and robustness by providing utilities for module compilation, HTTP testing, and mocking.
Core Features & Use Cases
- TestingModule: Compile and test Stratal modules with provider overrides and environment configuration.
- HTTP Testing: A fluent client for making requests and asserting responses within tests.
- Mocks & Fakes: Utilities like
FakeStorageService and createFetchMock for isolating dependencies.
- Auth Testing: Helpers like
ActingAs to simulate authenticated users.
- Use Case: When developing a new API endpoint in a Stratal application, use this Skill to create a test suite that verifies the endpoint's functionality, response codes, and data integrity under various conditions.
Quick Start
Use the stratal-testing skill to create a test module for the UsersModule and override the EMAIL_TOKEN provider with a mock email service.