From 74974804de50e689ee7625e6b35082737226df14 Mon Sep 17 00:00:00 2001 From: xidedix Date: Mon, 19 Oct 2026 13:58:28 +0200 Subject: [PATCH 1/2] test(Table): drop explicit provideZonelessChangeDetection createApplication is zoneless by default, so the provider was redundant. With a stray zone.js in node_modules it also logged NG0914. --- projects/coreui-angular/src/lib/table/table.directive.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/coreui-angular/src/lib/table/table.directive.spec.ts b/projects/coreui-angular/src/lib/table/table.directive.spec.ts index ea6e4014..38fa37da 100644 --- a/projects/coreui-angular/src/lib/table/table.directive.spec.ts +++ b/projects/coreui-angular/src/lib/table/table.directive.spec.ts @@ -4,7 +4,6 @@ import { ErrorHandler, inject, inputBinding, - provideZonelessChangeDetection, Renderer2, RendererFactory2, RendererType2, @@ -350,7 +349,7 @@ describe('TableDirective with a renderer that defers removals to the end of chan describe('TableDirective in an application being destroyed', () => { it('should not throw', async () => { - const appRef = await createApplication({ providers: [provideZonelessChangeDetection()] }); + const appRef = await createApplication(); const hostElement = document.body.appendChild(document.createElement('div')); try { const componentRef = createComponent(ToggleTestComponent, { environmentInjector: appRef.injector, hostElement }); From c31efa38c7bd26a85257b8eab32281556768d67a Mon Sep 17 00:00:00 2001 From: xidedix Date: Mon, 19 Oct 2026 14:17:51 +0200 Subject: [PATCH 2/2] test(Table): give the ancestor test component its own selector ToggleTestComponent and AncestorTestComponent hashed to the same component ID under the default ng-component selector (NG0912). --- projects/coreui-angular/src/lib/table/table.directive.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/coreui-angular/src/lib/table/table.directive.spec.ts b/projects/coreui-angular/src/lib/table/table.directive.spec.ts index 38fa37da..88ec8f15 100644 --- a/projects/coreui-angular/src/lib/table/table.directive.spec.ts +++ b/projects/coreui-angular/src/lib/table/table.directive.spec.ts @@ -54,6 +54,7 @@ class OutletTestComponent { } @Component({ + selector: 'c-test-table-ancestor', imports: [TableDirective], template: `
@if (show()) {