Skip to content

Commit 574d7c2

Browse files
author
Matt Morgan
committed
better config
1 parent 546ef7f commit 574d7c2

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

.mocharc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"require": "ts-node/register"
3+
}

.nycrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"all": true,
3+
"check-coverage": true,
4+
"exclude": [
5+
"**/*.d.ts",
6+
"src/decorator-options/**",
7+
"src/metadata/args/**",
8+
"src/metadata/types/**"
9+
],
10+
"extension": [".ts"],
11+
"include": ["src/**"],
12+
"reporter": ["html", "lcov", "text-summary"]
13+
}

package.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -95,24 +95,6 @@
9595
"scripts": {
9696
"build": "rimraf build && echo Using TypeScript && tsc --version && tsc --pretty",
9797
"clean": "rimraf build coverage",
98-
"test": "rimraf coverage && cross-env NODE_ENV=test nyc mocha -r ts-node/register test/**/*.ts"
99-
},
100-
"nyc": {
101-
"extension": [
102-
".ts"
103-
],
104-
"exclude": [
105-
"**/*.d.ts",
106-
"sample/**",
107-
"src/decorator-options/**",
108-
"src/metadata/args/**",
109-
"src/metadata/types/**"
110-
],
111-
"reporter": [
112-
"html",
113-
"lcov",
114-
"text-summary"
115-
],
116-
"all": true
98+
"test": "rimraf coverage && cross-env NODE_ENV=test nyc mocha test/**/*.ts"
11799
}
118100
}

0 commit comments

Comments
 (0)