From b8b89bea2ecf7ccc695c137327e75240dd43e4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fl=C3=BCr?= Date: Fri, 22 Nov 2019 12:43:48 +0100 Subject: [PATCH 1/2] 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. --- docs/guides/getting-started.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/guides/getting-started.md b/docs/guides/getting-started.md index 634b9c566..c9fd5e19a 100644 --- a/docs/guides/getting-started.md +++ b/docs/guides/getting-started.md @@ -10,6 +10,22 @@ cd vue-test-utils-getting-started npm install ``` +If you already have a project and want to add testing capabilities you may run: + +```bash +# unit testing +vue add @vue/unit-jest + +#or: +vue add @vue/unit-mocha + +# end-to-end +vue add @vue/e2e-cypress + +#or: +vue add @vue/e2e-nightwatch +``` + You will see that the project includes a simple component, `counter.js`: ```js From 1d3efcdd2ad6766da1892febbba7ba44c02a762e Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Fri, 3 Jan 2020 17:24:51 +1000 Subject: [PATCH 2/2] (docs): run linting --- docs/guides/getting-started.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/getting-started.md b/docs/guides/getting-started.md index c9fd5e19a..f694afc08 100644 --- a/docs/guides/getting-started.md +++ b/docs/guides/getting-started.md @@ -10,19 +10,19 @@ cd vue-test-utils-getting-started npm install ``` -If you already have a project and want to add testing capabilities you may run: +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: ```bash # unit testing -vue add @vue/unit-jest +vue add @vue/unit-jest -#or: +# or: vue add @vue/unit-mocha # end-to-end -vue add @vue/e2e-cypress +vue add @vue/e2e-cypress -#or: +# or: vue add @vue/e2e-nightwatch ```