bootstrap-vue-next: ResizeObserver is not defined
Describe the bug
Some of my tests are failing with the error ResizeObserver is not defined when bumping bootstrap-vue-next from 0.22.7 to 0.23.1
https://gitlab.com/gitlab-renovate-forks/contributors-gitlab-com/-/jobs/7290647744
ReferenceError: ResizeObserver is not defined
❯ whileElementsMountedOption ../../node_modules/.pnpm/@floating-ui+dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs:1:6784
❯ C ../../node_modules/.pnpm/@floating-ui+vue@1.1.1_vue@3.4.27/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs:150:37
❯ callWithErrorHandling ../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:196:19
❯ callWithAsyncErrorHandling ../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:203:17
❯ job ../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6043:9
❯ resetScheduling ../../node_modules/@vue/reactivity/dist/reactivity.cjs.js:266:34
❯ triggerEffects ../../node_modules/@vue/reactivity/dist/reactivity.cjs.js:310:3
❯ triggerRefValue ../../node_modules/@vue/reactivity/dist/reactivity.cjs.js:1075:5
❯ RefImpl.set value [as value] ../../node_modules/@vue/reactivity/dist/reactivity.cjs.js:1122:7
❯ doSet ../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3711:21
I couldn’t find any existing issues, but I did see some changes relating to floating which seems to tie in with the stack trace?
Are there any known issues?
Reproduction
https://gitlab.com/gitlab-renovate-forks/contributors-gitlab-com/-/jobs/7290647744
Used Package Manager
npm
Validations
- Have tested with the latest version. This is still alpha version and sometime things change rapidly.
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (12 by maintainers)
I sorted this issue with ‘jsdom-testing-mocks’
The idea is to mock ResizeObserver before each test execution.