Skip to content

Commit e57dff5

Browse files
authored
Merge pull request #269 from nogic1008/e2e/vue-test-utils
chore: bump @vue/test-utils to release version in /e2e
2 parents 726b96a + 8fae661 commit e57dff5

File tree

8 files changed

+21
-20
lines changed

8 files changed

+21
-20
lines changed

e2e/__projects__/babel-in-package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@babel/core": "^7.2.2",
1616
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.0-beta.28",
17+
"@vue/test-utils": "^1.0.5",
1818
"jest": "^24.0.0",
1919
"vue-jest": "file:../../../"
2020
},

e2e/__projects__/basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@babel/core": "^7.2.2",
1616
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.0-beta.28",
17+
"@vue/test-utils": "^1.0.5",
1818
"babel-helper-vue-jsx-merge-props": "^2.0.3",
1919
"babel-plugin-syntax-jsx": "^6.18.0",
2020
"babel-plugin-transform-vue-jsx": "^3.7.0",

e2e/__projects__/basic/test.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,27 @@ test('generates source maps using src attributes', () => {
5858

5959
test('processes .vue file using jsx', () => {
6060
const wrapper = mount(Jsx)
61-
expect(wrapper.is('div')).toBeTruthy()
61+
expect(wrapper.element.tagName).toBe('DIV')
6262
})
6363

6464
test('processes extended functions', () => {
6565
const wrapper = mount(Constructor)
66-
expect(wrapper.is('div')).toBeTruthy()
66+
expect(wrapper.element.tagName).toBe('DIV')
6767
})
6868

6969
test('processes .vue file with lang set to coffee', () => {
7070
const wrapper = mount(Coffee)
71-
expect(wrapper.is('div')).toBeTruthy()
71+
expect(wrapper.element.tagName).toBe('DIV')
7272
})
7373

7474
test('processes .vue file with lang set to coffeescript', () => {
7575
const wrapper = mount(CoffeeScript)
76-
expect(wrapper.is('div')).toBeTruthy()
76+
expect(wrapper.element.tagName).toBe('DIV')
7777
})
7878

7979
test('processes .vue files with lang set to typescript', () => {
8080
const wrapper = mount(TypeScript)
81-
expect(wrapper.is('div')).toBeTruthy()
81+
expect(wrapper.element.tagName).toBe('DIV')
8282
})
8383

8484
test('processes functional components', () => {
@@ -106,29 +106,29 @@ test('processes SFC with functional template from parent', () => {
106106

107107
test('handles missing script block', () => {
108108
const wrapper = mount(NoScript)
109-
expect(wrapper.contains('footer'))
109+
expect(wrapper.element.tagName).toBe('FOOTER')
110110
})
111111

112112
test('processes .vue file with jade template', () => {
113113
const wrapper = mount(Jade)
114-
expect(wrapper.is('div')).toBeTruthy()
114+
expect(wrapper.element.tagName).toBe('DIV')
115115
expect(wrapper.classes()).toContain('jade')
116116
})
117117

118118
test('processes pug templates', () => {
119119
const wrapper = mount(Pug)
120-
expect(wrapper.is('div')).toBeTruthy()
120+
expect(wrapper.element.tagName).toBe('DIV')
121121
expect(wrapper.classes()).toContain('pug-base')
122122
expect(wrapper.find('.pug-extended').exists()).toBeTruthy()
123123
})
124124

125125
test('supports relative paths when extending templates from .pug files', () => {
126126
const wrapper = mount(PugRelative)
127-
expect(wrapper.is('div')).toBeTruthy()
127+
expect(wrapper.element.tagName).toBe('DIV')
128128
expect(wrapper.find('.pug-relative-base').exists()).toBeTruthy()
129129
})
130130

131131
test('processes SFC with no template', () => {
132132
const wrapper = mount(RenderFunction)
133-
expect(wrapper.is('section')).toBe(true)
133+
expect(wrapper.element.tagName).toBe('SECTION')
134134
})

e2e/__projects__/custom-transformers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@babel/core": "^7.2.2",
1616
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.0-beta.28",
17+
"@vue/test-utils": "^1.0.5",
1818
"jest": "^24.0.0",
1919
"postcss": "^7.0.13",
2020
"postcss-color-function": "^4.0.1",

e2e/__projects__/style/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"devDependencies": {
1515
"@babel/core": "^7.2.2",
1616
"@babel/preset-env": "^7.2.3",
17-
"@vue/test-utils": "^1.0.0-beta.28",
17+
"@vue/test-utils": "^1.0.5",
1818
"jest": "^24.0.0",
1919
"postcss": "^7.0.13",
2020
"sass": "^1.23.7"

e2e/__projects__/style/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import External from './components/External.vue'
88

99
test('processes Less', () => {
1010
const wrapper = mount(Less)
11-
expect(wrapper.is('div')).toBeTruthy()
11+
expect(wrapper.element.tagName).toBe('DIV')
1212
expect(wrapper.vm.$style.a).toEqual('a')
1313
})
1414

1515
test('processes PostCSS', () => {
1616
const wrapper = mount(PostCss)
17-
expect(wrapper.is('section')).toBeTruthy()
17+
expect(wrapper.element.tagName).toBe('SECTION')
1818
expect(wrapper.vm.$style.a).toEqual('a')
1919
expect(wrapper.vm.$style.b).toEqual('b')
2020
})

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"@babel/core": "^7.2.2",
3333
"@babel/preset-env": "^7.2.3",
34-
"@vue/test-utils": "^1.0.0-beta.25",
34+
"@vue/test-utils": "^1.0.5",
3535
"babel-core": "^7.0.0-bridge.0",
3636
"babel-jest": "^23.6.0",
3737
"coffeescript": "^2.3.2",

yarn.lock

+4-3
Original file line numberDiff line numberDiff line change
@@ -1142,9 +1142,10 @@
11421142
source-map "~0.6.1"
11431143
vue-template-es2015-compiler "^1.9.0"
11441144

1145-
"@vue/test-utils@^1.0.0-beta.25":
1146-
version "1.0.0-beta.32"
1147-
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.0.0-beta.32.tgz#38c3947886236201a3f24b583c73598eb95ccc69"
1145+
"@vue/test-utils@^1.0.5":
1146+
version "1.0.5"
1147+
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.0.5.tgz#676e1f986bb93ddc869d9c6cf1c820183d64d92f"
1148+
integrity sha512-P2x8kXwqfTXesAdfJQN146V1S3QD3Xv9wYZ1B09Oecmg7I3Fpqqo1CwfIn5ivwuXyBPQWFDH4vyBHynnYjIkRg==
11481149
dependencies:
11491150
dom-event-types "^1.0.0"
11501151
lodash "^4.17.15"

0 commit comments

Comments
 (0)