@@ -19,7 +19,7 @@ module.exports = api => {
19
19
} )
20
20
21
21
api . registerCommand ( 'test:unit' , {
22
- description : 'run unit tests with mocha-webpack ' ,
22
+ description : 'run unit tests with mochapack ' ,
23
23
usage : 'vue-cli-service test:unit [options] [...files]' ,
24
24
options : {
25
25
'--watch, -w' : 'run in watch mode' ,
@@ -34,7 +34,7 @@ module.exports = api => {
34
34
details : (
35
35
`The above list only includes the most commonly used options.\n` +
36
36
`For a full list of available options, see\n` +
37
- `http ://zinserjan .github.io/mocha-webpack /docs/installation/cli-usage.html`
37
+ `https ://sysgears .github.io/mochapack /docs/installation/cli-usage.html`
38
38
)
39
39
} , ( args , rawArgv ) => {
40
40
const inspectPos = rawArgv . indexOf ( '--inspect-brk' )
@@ -46,7 +46,7 @@ module.exports = api => {
46
46
process . env . VUE_CLI_BABEL_TARGET_NODE = true
47
47
// start runner
48
48
const { execa } = require ( '@vue/cli-shared-utils' )
49
- const bin = require . resolve ( 'mocha-webpack /bin/mocha-webpack ' )
49
+ const bin = require . resolve ( 'mochapack /bin/mochapack ' )
50
50
const hasInlineFilesGlob = args . _ && args . _ . length
51
51
const argv = [
52
52
...nodeArgs ,
@@ -69,7 +69,7 @@ module.exports = api => {
69
69
child . on ( 'error' , reject )
70
70
child . on ( 'exit' , code => {
71
71
if ( code !== 0 ) {
72
- reject ( `mocha-webpack exited with code ${ code } .` )
72
+ reject ( `mochapack exited with code ${ code } .` )
73
73
} else {
74
74
resolve ( )
75
75
}
0 commit comments