Some symbols not picked up by documentation infrastructure
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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.)
```ts
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):
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’échec de fermeture de l’overlay MatSelect dans l’environnement de test JSDOM et suivez l’endroit où il attend l’événement d’animation CSS animationend. Comparez ce chemin avec la solution de contournement TestBed fournie utilisant ANIMATION_MODULE_TYPE et provideNoopAnimations(); le travail est terminé lorsqu’un chemin de test standardisé est identifié et documenté.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend, testing
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100