diff options
Diffstat (limited to 'tests/pages/index.test.js')
-rw-r--r-- | tests/pages/index.test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pages/index.test.js b/tests/pages/index.test.js new file mode 100644 index 0000000..1e262b3 --- /dev/null +++ b/tests/pages/index.test.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import index from '../../pages/index' + +describe('index', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(index) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) |