Skip to content
Discussion options

You must be logged in to vote

I seem to have gotten Bootstrap-Vue working in the Jest tests, when using vue/compat with Vue 3.

In jest.config.js, I have applied the alias to moduleNameMapper:

  moduleNameMapper: {
    '^vue$': '@vue/compat',
  },

I could not fugure where to apply the compatConfig mode, so instead I added the configureCompat() function to a setup file via jest.config.js setupFiles:

  setupFiles: ['<rootDir>/setup'],

setup.js:

import { configureCompat } from 'vue'

configureCompat({
  .
  .
  .
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ckhatton-transreport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant