| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This folder contains test scenarios for the automated tests of the template on CircleCI.
Each .jsonfile contains an object that represents a set of answers to the questions that vue-cli asks the user when installing the template.
With the code from index.js, we insert those answers into the metalsmith metadata and skip the inquirer questions, thus allowing us to run different test scenarios in CI without having to actually provide any answers to inquirer or to mock it.
We currently have 3 scenarios set up:
Other permutations might be worth testing to secure against edge cases, but this gives us a decent level of security over common combinations.
Choosing a scenario is done through setting an ENV variable named VUE_TEMPL_TEST.
You can run a scenario yourself by running this in your terminal:
VUE_TEMPL_TEST=minimal vue init webpack your-directory ```
| Back | FazBrowse Home | New Git URL |