提交 | 用户 | age | ||
f6fe1d | 1 | // import { mount } from '@vue/test-utils'; |
V | 2 | // import { Button } from '/@/components/Button'; |
3 | ||
4 | test('if jest is normal.', async () => { | |
5 | expect('jest').toEqual('jest'); | |
6 | }); | |
7 | ||
8 | // TODO Vue component testing is not supported temporarily | |
9 | // test('is a Vue instance.', async () => { | |
10 | // const wrapper = mount(Button, { | |
11 | // slots: { | |
12 | // default: 'Button text', | |
13 | // }, | |
14 | // }); | |
15 | // expect(wrapper.html()).toContain('Button text'); | |
16 | // }); |