Skip to content

Commit b8b89be

Browse files
authored
Amending commands to install the testing frameworks
If you want to add testing to an already working project, the search for the correct plugins can be tedious, thus the request to add this in the "getting started" paragraph.
1 parent ef5bc3c commit b8b89be

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 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)