mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-29 08:20:08 -05:00
fix mocha name
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# @vue/cli-plugin-unit-mocha-webpack
|
||||
# @vue/cli-plugin-unit-mocha
|
||||
|
||||
> unit-mocha-webpack plugin for vue-cli
|
||||
> unit-mocha plugin for vue-cli
|
||||
|
||||
@@ -3,7 +3,7 @@ const generateWithPlugin = require('@vue/cli-test-utils/generateWithPlugin')
|
||||
test('base', async () => {
|
||||
const { pkg, files } = await generateWithPlugin([
|
||||
{
|
||||
id: 'unit-mocha-webpack',
|
||||
id: 'unit-mocha',
|
||||
apply: require('../generator'),
|
||||
options: {}
|
||||
},
|
||||
|
||||
@@ -3,12 +3,10 @@ jest.setTimeout(20000)
|
||||
const create = require('@vue/cli-test-utils/createTestProject')
|
||||
|
||||
test('should work', async () => {
|
||||
const project = await create('unit-mocha-webpack', {
|
||||
const project = await create('unit-mocha', {
|
||||
plugins: {
|
||||
'@vue/cli-plugin-babel': {},
|
||||
'@vue/cli-plugin-unit-mocha-webpack': {
|
||||
assertionLibrary: 'chai'
|
||||
}
|
||||
'@vue/cli-plugin-unit-mocha': {}
|
||||
}
|
||||
})
|
||||
await project.run(`vue-cli-service test`)
|
||||
|
||||
Reference in New Issue
Block a user