What problem does it solve?
The testing-injectable skill solves the problem of testing code that uses the Injectable framework for dependency injection. It provides a structured way to test dependencies, mock services, and ensure the integrity of your application's components.
Core Features & Use Cases
- Mock Services: Create mock instances of dependencies to simulate behavior during testing.
- Pre-built Instances: Use pre-built mock instances for testing without setting up the entire environment.
- Container Isolation: Run tests in isolated containers to avoid side effects.
- Singleton Semantics: Verify that singletons behave as expected.
- Test Lifecycle Hooks: Check if lifecycle hooks are executed correctly.
- Use Case: When developing a service that utilizes Injectable for dependency management, this skill helps in ensuring that your services are functioning as expected under various scenarios.
Quick Start
Run the test suite using the test command in the skills/testing-injectable directory.