Commit 5f75536
fix: mock MuxPlayer in tests to prevent jsdom Web Component errors (#10858)
The @mux/mux-player Web Component crashes jsdom with
`r.addEventListener is not a function` when mounted during tests,
causing 12 unhandled errors and CI failure despite all tests passing.
Mocking the component prevents it from mounting in the test environment.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a0db4e0 commit 5f75536
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments