test-angular-ui
Installation
SKILL.md
Test Angular UI (ABP)
ABP ships Angular testing modules that stand in a config-provider-only version of the framework so a TestBed boots without a real backend. Use them instead of hand-wiring RestService/PermissionService fakes.
When to Use
- Unit-testing an ABP Angular component or service with
TestBed. - A component that renders modals/toasts and needs the body cleaned up between tests.
When Not to Use
- Server-side integration tests (app services, repositories, EF Core/Mongo) — use test-abp-applications.
- MVC/Razor page or HTTP-level tests — use test-mvc-razor-ui.
- Writing the component itself — use build-angular-lists-and-forms / extend-angular-module-ui / angular-ui.
Set up the TestBed
Import CoreTestingModule.withConfig() (from @abp/ng.core/testing) — it swaps in a CORE_OPTIONS with skipGetAppConfiguration: true and mock PermissionService/RestService, so nothing calls a backend. Add ThemeSharedTestingModule.withConfig() (from @abp/ng.theme.shared/testing) when the component uses theme-shared pieces (validation, toasts). Standalone components go in imports.