Init
This commit is contained in:
5
tests/unit/.eslintrc.js
Normal file
5
tests/unit/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
jest: true,
|
||||
},
|
||||
}
|
||||
7
tests/unit/example.spec.js
Normal file
7
tests/unit/example.spec.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import App from '@/App.vue'
|
||||
|
||||
test('App should work', () => {
|
||||
const wrapper = shallowMount(App)
|
||||
expect(wrapper.text()).toMatch('Welcome to Your Vue.js App')
|
||||
})
|
||||
Reference in New Issue
Block a user