Commit fe804bf
committed
fix(MissingObserver polyfill): add MissingObserver polyfill for jest environment
affects: @patternfly/react-console, patternfly-react
Referenced from noVNC (@novnc/nvnc/core/util/events.js).
Workaround for the 'jest' testing only
since the MutationObserver is available in browsers otherwise.
Attempt to fix the issue by using
'browser' jest configuration option did not work in this case.1 parent 0caf5ea commit fe804bf
3 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9772 | 9772 | | |
9773 | 9773 | | |
9774 | 9774 | | |
| 9775 | + | |
| 9776 | + | |
| 9777 | + | |
| 9778 | + | |
9775 | 9779 | | |
9776 | 9780 | | |
9777 | 9781 | | |
| |||
0 commit comments