Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,10 @@ it('should show movies (spy)', () => {

This version requires the `MoviesStore` state to be unprotected.

### Getting the type of the Store to be mocked.

Some mocking tools and libraries like ts-mockito or ng-mockito need that you provide the type of the object to be mocked. In that case, you can provide `InstanceType<typeof YourStore>>` as the type.

## Integration Tests

Services attached to a component are often simple, and writing unit tests for them may not always be necessary, particularly when considering the returned value and maintenance costs. In such cases, it is more effective to test the services together with the component as a whole. This type of testing is commonly referred to as integration testing.
Expand Down