angular / angular/components

Some symbols not picked up by documentation infrastructure

Abierto
#32,783 1 comentario 0 reacciones 0 asignados Ver en GitHub
area: dev-infra docs P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### 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):

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el fallo de cierre del overlay de MatSelect en el entorno de pruebas JSDOM y rastrea dónde espera el evento de animación CSS animationend. Compara esa ruta con la solución alternativa proporcionada para TestBed mediante ANIMATION_MODULE_TYPE y provideNoopAnimations(); se considera terminado cuando se haya identificado y documentado una ruta de pruebas estandarizada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend, testing
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.