Skip to content

Commit d38e206

Browse files
author
mcibique
committed
Added nyc for test coverage
1 parent f013b64 commit d38e206

File tree

5 files changed

+3531
-258
lines changed

5 files changed

+3531
-258
lines changed

.babelrc

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
],
55
"plugins": [
66
"@babel/plugin-proposal-decorators",
7-
["@babel/plugin-proposal-class-properties", { "loose": true }]
8-
]
7+
[
8+
"@babel/plugin-proposal-class-properties",
9+
{
10+
"loose": true
11+
}
12+
]
13+
],
14+
"env": {
15+
"test": {
16+
"plugins": [
17+
"istanbul"
18+
]
19+
}
20+
}
921
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ yarn-error.log*
1818
*.ntvs*
1919
*.njsproj
2020
*.sln
21+
22+
test/reports

.nycrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"include": [
3+
"src/**/*.(js|vue)"
4+
],
5+
"exclude": [
6+
"src/**/*.spec.js",
7+
"src/**/*.po.js",
8+
"src/**/*.stub.js"
9+
],
10+
"instrument": false,
11+
"sourceMap": false,
12+
"reporter": [
13+
"html",
14+
"text"
15+
],
16+
"report-dir": "./test/reports",
17+
"tempDirectory": "./test/reports/.nyc_output"
18+
}

0 commit comments

Comments
 (0)