An open API service indexing awesome lists of open source software.

https://github.com/br3ndonland/vue-mastery-testing-app

Vue CLI 4 app for Vue Mastery testing course
https://github.com/br3ndonland/vue-mastery-testing-app

jest vue vue-cli vue-mastery vue-test-utils

Last synced: 6 months ago
JSON representation

Vue CLI 4 app for Vue Mastery testing course

Awesome Lists containing this project

README

          

# vue-mastery-testing-app

![Install, build, format, and test](https://github.com/br3ndonland/vue-mastery-testing-app/workflows/Install,%20build,%20format,%20and%20test/badge.svg)

Vue CLI 4 app for [Vue Mastery unit testing course](https://www.vuemastery.com/courses/unit-testing/what-to-test)

Notes in [br3ndonland/vue-mastery-notes](https://github.com/br3ndonland/vue-mastery-notes)

## Project setup

```
npm install
```

### Compile and hot-reload for development

```
npm run serve
```

### Compile and minify for production

```
npm run build
```

### Run unit tests

```
npm run test:unit
```

### Lint and fix files

```
npm run lint
npm run fix
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).

Configuration settings used initially:

```
Vue CLI v4.3.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, Linter, Unit
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save, Lint and fix on commit
? Pick a unit testing solution: Jest
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? (y/N) N
```

When [Prettier](https://prettier.io/) is selected, Vue CLI also includes ESLint, which is unnecessary. Some additional configuration is needed to remove ESLint. See commit [`c1889ec`](https://github.com/br3ndonland/vue-mastery-testing-app/commit/c1889ec862f29d87905d5f7be70819ed2df73081) for details on removal of ESLint.