Proxy event bus versioning warnings with jest test

Hi. When I try to run a unit test i get this warning:

    console.warn
      Proxying an event bus of version 1.3.0 with 3.1.0

      42 |
      43 | <script>
    > 44 | import { NcButton } from '@nextcloud/vue'
         | ^
      45 | import { MessageTypeStore } from '../../store/MessageTypeStore.js'
      46 | import Send from 'vue-material-design-icons/Send.vue'
      47 | import EmailOutline from 'vue-material-design-icons/EmailOutline.vue'

      at new ProxyBus (node_modules/@nextcloud/logger/node_modules/@nextcloud/event-bus/lib/ProxyBus.ts:16:21)
      at getBus (node_modules/@nextcloud/logger/node_modules/@nextcloud/event-bus/lib/index.ts:42:15)
      at Object.subscribe (node_modules/@nextcloud/logger/node_modules/@nextcloud/event-bus/lib/index.ts:56:5)
      at Object.subscribe (node_modules/@nextcloud/logger/node_modules/@nextcloud/auth/lib/requesttoken.ts:26:1)
      at Object.require (node_modules/@nextcloud/logger/lib/LoggerBuilder.ts:1:1)
      at Object.require (node_modules/@nextcloud/logger/lib/index.ts:3:1)
      at Object.<anonymous> (node_modules/@nextcloud/vue/dist/chunks/logger-G6OKp5ly.cjs:2:11)
      at Object.<anonymous> (node_modules/@nextcloud/vue/dist/chunks/NcTimezonePicker-KG0dvgUv.cjs:2:48)
      at Object.<anonymous> (node_modules/@nextcloud/vue/dist/Components/NcDateTimePicker.cjs:3:107)
      at Object.<anonymous> (node_modules/@nextcloud/vue/dist/chunks/NcActionInput-f1Oq2O71.cjs:3:11)
      at Module.Object.<anonymous> (node_modules/@nextcloud/vue/dist/index.cjs:4:216)
      at Object.<anonymous> (src/components/messagetypes/MessageTypes.vue:44:1)
      at Object.require (tests/unit/components/MessageTypes/MessageTypes.spec.js:12:1)

This doesnt happen in all my test files, but this file uses the event-bus (i’d assume, with this.$root.$emit and this.$root.$on).

When I run npm ls @nextcloud/event-bus i get the following versions:

β”œβ”€β”¬ @nextcloud/axios@1.11.0
β”‚ └─┬ @nextcloud/auth@1.3.0
β”‚   └── @nextcloud/event-bus@1.3.0
└─┬ @nextcloud/vue@8.7.1
  β”œβ”€β”¬ @nextcloud/auth@2.2.1
  β”‚ └── @nextcloud/event-bus@3.1.0 deduped
  β”œβ”€β”€ @nextcloud/event-bus@3.1.0
  └─┬ @nextcloud/logger@2.7.0
    └─┬ @nextcloud/auth@2.2.1
      └── @nextcloud/event-bus@3.1.0

And these are the versions I use:

"dependencies": {
    "@nextcloud/axios": "^1.10.0",
    "@nextcloud/dialogs": "^3.1.4",
    "@nextcloud/l10n": "^2.2.0",
    "@nextcloud/router": "^2.0.0",
    "@nextcloud/vue": "^8.7.1",
    "moment": "^2.30.1",
    "vue": "^2.7.0",
    "vue-material-design-icons": "^5.0.0",
    "vue-router": "^3.6.5",
    "vuex": "^3.6.2"
  },
  "devDependencies": {
    "@nextcloud/babel-config": "^1.0.0",
    "@nextcloud/browserslist-config": "^2.2.0",
    "@nextcloud/eslint-config": "^8.0.0",
    "@nextcloud/stylelint-config": "^2.1.2",
    "@nextcloud/webpack-vue-config": "^5.2.1",
    "@testing-library/vue": "^5.9.0",
    "@types/jest": "^29.5.12",
    "@vue/test-utils": "^1.3.6",
    "@vue/vue2-jest": "^29.2.6",
    "babel-jest": "^29.7.0",
    "jest": "^29.7.0",
    "jest-environment-jsdom": "^29.7.0",
    "jest-fetch-mock": "^3.0.3",
    "jest-serializer-vue": "^3.1.0",
    "jest-transform-stub": "^2.0.0",
    "jest-watch-typeahead": "^2.2.2"
  },

How do I fix this warning and remove the bloat, I assume it’s because of versioning somehow?
Thanks.

Found the answer to why it happened only in that file:

I had to import it as import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'

Instead. For some reason the import had changed, but it worked as it should, except when running it as a jest test.