I scaffolded out a @vue/cli project with Jest included. Then installed Bootstrap, and included the CSS file into the HelloWorld.vue component.
When running yarn unit:test, I get the following error:

Jest config (in package.json) includes:
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
Jest doesn't apply transforms to node_modules by default. You can solve this by using moduleNameMapper in your jest config file:
{
"jest": {
// ..
"moduleNameMapper": {
"^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
}
}
}
From jest-transform-stub FAQ
@cp3r - hey, thanks for the reply! I recently found that out, but forgot about this issue. Closing.
Most helpful comment
Jest doesn't apply transforms to node_modules by default. You can solve this by using
moduleNameMapperin your jest config file:From jest-transform-stub FAQ