Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit b04f7b9

Browse files
authored
Merge pull request #20 from hisasann/feature/remove-nuxt-babel-preset-app
Feature/remove nuxt babel preset app
2 parents db5e9a1 + acb4c7e commit b04f7b9

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"node": "current"
1010
}
1111
}
12-
],
13-
"@nuxt/babel-preset-app"
12+
]
1413
]
1514
}
1615
}

src/test/HelloWorld.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { mount, shallowMount } from '@vue/test-utils'
2+
import HelloWorld from '@/components/HelloWorld.vue'
3+
4+
describe('HelloWorld', (): void => {
5+
test('is a Vue instance', (): void => {
6+
const wrapper = mount(HelloWorld)
7+
expect(wrapper.isVueInstance()).toBeTruthy()
8+
})
9+
10+
test('renders props.message when passed', () => {
11+
const message = 'new message'
12+
const wrapper = shallowMount(HelloWorld, {
13+
propsData: { message }
14+
})
15+
expect(wrapper.text()).toMatch(message)
16+
})
17+
})

src/test/Logo.test.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)