diff --git a/.nycrc b/.nycrc.json similarity index 55% rename from .nycrc rename to .nycrc.json index dbca481..d273de4 100644 --- a/.nycrc +++ b/.nycrc.json @@ -1,16 +1,15 @@ { "include": ["src/**/*.js", "src/**/*.ts"], "exclude": [ - "src/**/index.js", - "src/resources/", - "src/transport/ScorePlayer.js", - "src/Lib.js" + "src/**/index.js" ], "extension": [".js", ".ts"], "reporter": ["lcov", "text", "html"], - "require": "@babel/register", + "require": ["@babel/register","ts-node/register"], "sourceMap": false, "instrument": false, "cache": false, - "all": true + "all": true, + "extends": "@istanbuljs/nyc-config-typescript", + "check-coverage": true } diff --git a/package-lock.json b/package-lock.json index 6025f15..53f250c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2977,11 +2977,18 @@ } } }, + "@istanbuljs/nyc-config-typescript": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@istanbuljs/nyc-config-typescript/-/nyc-config-typescript-1.0.1.tgz", + "integrity": "sha512-/gz6LgVpky205LuoOfwEZmnUtaSmdk0QIMcNFj9OvxhiMhPpKftMgZmGN7jNj7jR+lr8IB1Yks3QSSSNSxfoaQ==", + "requires": { + "@istanbuljs/schema": "^0.1.2" + } + }, "@istanbuljs/schema": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", - "dev": true + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==" }, "@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents", diff --git a/package.json b/package.json index 951063e..ee8418e 100644 --- a/package.json +++ b/package.json @@ -74,5 +74,8 @@ "typescript": "^4.2.3", "webpack": "^4.46.0", "webpack-cli": "^3.3.12" + }, + "dependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1" } }