JSFiddle - React, Tailwind, and code Playground
JavaScript
import { shallow } from 'vue-test-utils'
/* <template lang="html">
<div class="Banner">
<b-button :href="url">
{{ buttonText }}
</b-button>
</div>
</template> */
import Banner from '~/components/common/Banner'
describe('Banner', () => {
let component
beforeEach(() => {
component = shallow(Banner, {
propsData: {
'text': 'This is a banner'
}
})
})
// Test fails because vue-runtime throws an error
// unknown custom elements b-button
test('is a Vue instance', () => {
expect(component.isVueInstance()).toBeTruthy()
})
})