frontend-test-utils: remove redundant .factory util

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-07 00:34:36 +01:00
parent 0a1faaa076
commit f4bb4d1983
4 changed files with 4 additions and 45 deletions
@@ -9,7 +9,7 @@ When testing frontend components and extensions, you often need to provide mock
## The `mockApis` namespace
The `mockApis` namespace is the main entry point for creating mock utility API instances in tests. It provides three usage patterns for each API:
The `mockApis` namespace is the main entry point for creating mock utility API instances in tests. It provides two usage patterns for each API:
### Fake instances
@@ -42,10 +42,6 @@ const catalogApi = mockApis.permission.mock({
expect(catalogApi.authorize).toHaveBeenCalledTimes(1);
```
### API factories
Call `.factory()` to get an `ApiFactory` suitable for more advanced wiring scenarios.
## Providing mock APIs in tests
### With `renderInTestApp`