Skip to content

Commit 7b7263f

Browse files
authored
Merge pull request #1353 from lacrioque/patch-1
(docs): add docs on installing the testing frameworks by vue cli
2 parents 7b267b0 + 1d3efcd commit 7b7263f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/guides/getting-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ cd vue-test-utils-getting-started
1010
npm install
1111
```
1212

13+
If you already have a project that was craeted with the [Vue CLI](https://cli.vuejs.org/) and want to add testing capabilities you may run:
14+
15+
```bash
16+
# unit testing
17+
vue add @vue/unit-jest
18+
19+
# or:
20+
vue add @vue/unit-mocha
21+
22+
# end-to-end
23+
vue add @vue/e2e-cypress
24+
25+
# or:
26+
vue add @vue/e2e-nightwatch
27+
```
28+
1329
You will see that the project includes a simple component, `counter.js`:
1430

1531
```js

0 commit comments

Comments
 (0)