Resumen
Qué controla este paquete en el runtime
Testing provides a focused testing module API for xtaskjs services and controllers. It builds isolated DI containers, supports provider overrides, and helps teams write unit and integration tests without booting a full HTTP runtime.
Qué ofrece
- Test.createTestingModule() starts an isolated module graph from metadata or module classes.
- overrideProvider(token) supports useValue, useClass, and useFactory override strategies.
- moduleRef.get() and moduleRef.resolve() expose sync or async-friendly provider lookup.
- moduleRef.close() triggers teardown hooks and clears test container state.
Cómo encaja
- Used by xtask-cli test generators (controller-test, service-test, resource-tests) for starter scaffolds.
- Demonstrated by the 25-testing_app sample with DI overrides and lifecycle assertions.
- Pairs with Node test runner or Vitest in CI pipelines to keep service-level tests fast and deterministic.