import Rippleable from '../' import { mount, MountOptions, Wrapper, } from '@vue/test-utils' describe('rippleable.ts', () => { const Mock = Rippleable.extend({ render () { return this.genRipple() }, }) type Instance = InstanceType let mountFunction: (options?: MountOptions) => Wrapper beforeEach(() => { mountFunction = (options?: MountOptions) => { return mount(Mock, options) } }) it('should match snapshot', () => { const wrapper = mountFunction() expect(wrapper.html()).toMatchSnapshot() }) })