Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@vue/babel-preset-jsx"]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ yarn-error.log*
*.njsproj
*.sln
*.sw*

# test coverage
/coverage
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ The following configurations are recommended for Jest:
``` js
{
"jest": {
"globals": {
"vue-jest": {
"babelConfig": {
"presets": [
["@babel/preset-env", { "useBuiltIns": "entry" }],
"@vue/babel-preset-jsx"
]
}
}
},
"moduleFileExtensions": [
"js",
"json",
Expand Down Expand Up @@ -53,11 +63,14 @@ The following configurations are recommended for Jest:
npm install

# serve with hot reload at localhost:8080
npm run dev
npm run serve

# build for production with minification
npm run build

# run tests
npm test
```

# see coverage
open coverage/lcov-report/index.html
```
Loading