Files
vue-cli/packages/@vue/cli-plugin-unit-mocha/__tests__/mochaPlugin.spec.js
Evan You 69ebd800a2 refactor: rename test commands
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register
"test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now
register "test:e2e" with optional `--headless` flag instead of "e2e" and
"e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e".

close #876, close #878
2018-05-01 18:15:25 -04:00

14 lines
322 B
JavaScript

jest.setTimeout(20000)
const create = require('@vue/cli-test-utils/createTestProject')
test('should work', async () => {
const project = await create('unit-mocha', {
plugins: {
'@vue/cli-plugin-babel': {},
'@vue/cli-plugin-unit-mocha': {}
}
})
await project.run(`vue-cli-service test:unit`)
})