Increase testability through dependency injection
- Remove existing integration tests for hooks as they're redundant after this change. - Document the pattern in relevant documentation. - Introduce `useEnvironment` to increase testability. - Update components to inject dependencies rather than importing hooks directly.
This commit is contained in:
5
src/presentation/components/Shared/Hooks/README.md
Normal file
5
src/presentation/components/Shared/Hooks/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Hooks
|
||||
|
||||
This folder contains shared hooks used throughout the application.
|
||||
|
||||
To use the hooks, prefer using Vue-native `provide` / `inject` pattern to keep the components independently testable without side-effect.
|
||||
Reference in New Issue
Block a user