https://github.com/eddyerburgh/vue-test-loader-example
An example project using vue-test-loader to extract tests
https://github.com/eddyerburgh/vue-test-loader-example
Last synced: 6 months ago
JSON representation
An example project using vue-test-loader to extract tests
- Host: GitHub
- URL: https://github.com/eddyerburgh/vue-test-loader-example
- Owner: eddyerburgh
- License: mit
- Created: 2017-11-08T06:29:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T06:29:33.000Z (over 8 years ago)
- Last Synced: 2024-12-30T04:26:09.324Z (over 1 year ago)
- Language: Vue
- Size: 43 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-test-loader example
Example project demonstrating vue-test-loader
## Usage
```
npm install
```
Run the webpack test build.
```
npm run build:test
```
This runs webpack in watch mode, which extracts code from blocks into .spec.js files.
Then run Jest in watch mode:
```
npm run unit:watch
```
Now you can edit the test blocks inside your single file components, and they'll be extracted to `.spec.js` files and run by Jest.