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