molgenis/molgenis-ui-filter

Warnings in test output 'observeDom: Requires MutationObserver support.'

Closed this issue · 2 comments

How to Reproduce

yarn test:unit

Expected behavior

No errors or warnings

Observed behavior

  ● Console

    console.warn node_modules/bootstrap-vue/dist/bootstrap-vue.common.js:1097
      [BootstrapVue warn]: observeDom: Requires MutationObserver support.

BootstrapVue removed the built in polyfills for Mutation Observer (Notes v2.0.0-rc.19) :

You need to provide a MutationObserver polyfill in your setup file (Got my answer via stackoverflow)


For example use a Polyfill like mutationobserver-shim :

npm i -D mutationobserver-shim

and add the polyfill in your setup file :

const MutationObserver = require('mutationobserver-shim');
global.MutationObserver = MutationObserver;

🎉 This issue has been resolved in version 1.5.6 🎉

The release is available on:

Your semantic-release bot 📦🚀