Some symbols not picked up by documentation infrastructure

Offen
#32,783 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
angular, typescript
Bereich
frontend, testing

Rechercherichtung

Beginne damit, den Fehler beim Schließen des MatSelect-Overlays in der JSDOM-Testumgebung zu reproduzieren, und verfolge, wo auf das CSS-Animationsevent animationend gewartet wird. Vergleiche diesen Pfad mit dem bereitgestellten TestBed-Workaround unter Verwendung von ANIMATION_MODULE_TYPE und provideNoopAnimations(); als erledigt gilt die Identifizierung und Dokumentation eines standardisierten Testpfads.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: dev-infra docs P3
Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

MatSelect waits for a CSS animationend event to close, which never fires in the JSDOM test environment.

  • Zone change detection works
  • Zoneless CD with provideNoopAnimations() works

Since (a) the dependency on the animations package was removed in Sept 2025, and (b) within the animations package, provideNoopAnimations() is scheduled to go away in v23, I am wondering what the recommended path will be.

Our current workaround is to inject ANIMATION_MODULE_TYPE in our tests. e.g.)

await TestBed.configureTestingModule({
  imports: [...],
  providers: [
    provideZonelessChangeDetection(),
    { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' },
  ],
}).compileComponents();
Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

A standardized way to test without provideNoopAnimations().

Actual Behavior

Tests that depend on waiting for the mat-select overlay to close fail.

Environment
  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.9k
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
83

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus angular/components

Alle Issues in angular/components

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.