Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Question: Is there a way to use BootstrapVue with VTU2?#7150

Unanswered
fgsalomon asked this question inQ&A
Discussion options

Hi,

I've some projects that use BootstrapVue that I'd like to migrate to Vue 3. Using@vue/compat I can run these projects without issues but I couldn't find a way to migrate their tests to the new tools.

Initially I was using Vue Testing Library v5 (VTU1)

Describe the question

Is it possible to use VTU2 with BootstrapVue and@vue/compat?

To Reproduce
I've set a minimal repo here:https://github.com/fgsalomon/vue3-bootstrap-vue-issues

This repo contains a componentTestBootstrap.vue that uses BootstrapVue components.
The component has a unittest with Vue Testing Library v7 (VTU2).

Expected behavior
The test runs successfully.

Currentlyyarn test:unit fails with the error when trying to install BootstrapVue plugin:

TypeError: Vue.extend is not a function

Related information:

  System:    OS: macOS 13.3.1    CPU: (8) arm64 Apple M1 Pro    Memory: 95.05 MB / 16.00 GB    Shell: 5.9 - /bin/zsh  npmPackages:    @testing-library/vue: ^7.0.0 => 7.0.0     @vue/test-utils: ^2.3.2 => 2.3.2     vitest: ^0.31.0 => 0.31.0     vue: ^3.3.2 => 3.3.2

Thank you.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@fgsalomon

[8]ページ先頭

©2009-2025 Movatter.jp