Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit262b9c5

Browse files
committed
feat: install @vue/test-utils alpha for unit tests
1 parent82b6dbc commit262b9c5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

‎generator/index.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = (api) => {
8181
})
8282

8383
api.exitLog('Installed vuex 4.0.')
84-
api.exitLog('See the documentation at https://github.com/vuejs/vuex/tree/4.0')
84+
api.exitLog('Documentation available at https://github.com/vuejs/vuex/tree/4.0')
8585

8686
conststorePath=resolveFile('src/store')
8787
if(storePath){
@@ -98,7 +98,7 @@ module.exports = (api) => {
9898
})
9999

100100
api.exitLog('Installed vue-router 4.0.')
101-
api.exitLog('See the documentation at https://github.com/vuejs/vue-router-next')
101+
api.exitLog('Documentation available at https://github.com/vuejs/vue-router-next')
102102

103103
constrouterPath=resolveFile('src/router')
104104
if(routerPath){
@@ -111,4 +111,15 @@ module.exports = (api) => {
111111
// * `keep-alive` is not yet supported
112112
// * Partial support of per-component navigation guards. No `beforeRouteEnter`
113113
}
114+
115+
if(api.hasPlugin('unit-jest')||api.hasPlugin('unit-mocha')){
116+
api.extendPackage({
117+
devDependencies:{
118+
'@vue/test-utils':'^2.0.0-alpha.1'
119+
}
120+
})
121+
122+
api.exitLog('Installed @vue/test-utils 2.0.')
123+
api.exitLog('Documentation available at https://github.com/vuejs/vue-test-utils-next')
124+
}
114125
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp