Skip to content

Commit 2b0128c

Browse files
committed
fix(ui-test-utils): use MutationObserver shim
Fixes INSTUI-1756 Change-Id: Ib87c34394e97c9bfa89705aef8aaec9a805467db Reviewed-on: https://gerrit.instructure.com/177854 Reviewed-by: Steve Jensen <sejensen@instructure.com> Product-Review: Steve Jensen <sejensen@instructure.com> Tested-by: Jenkins QA-Review: Omar Khan <okhan@instructure.com>
1 parent df7d1ca commit 2b0128c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ui-test-utils/src/utils/sandbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import StyleSheet from '@instructure/ui-stylesheet'
2929
import ReactComponentWrapper from './reactComponentWrapper'
3030

3131
import initConsole from './initConsole'
32+
import { newMutationObserver } from './shims'
3233

3334
class Sandbox {
3435
constructor () {
@@ -45,7 +46,7 @@ class Sandbox {
4546
}
4647

4748
this._addedNodes = []
48-
this._observer = new MutationObserver((mutations) => {
49+
this._observer = newMutationObserver((mutations) => {
4950
mutations.forEach((mutation) => {
5051
Array.from(mutation.addedNodes).forEach((addedNode) => {
5152
this._addedNodes.push(addedNode)

0 commit comments

Comments
 (0)