-
Notifications
You must be signed in to change notification settings - Fork 0
/
nyc.config.js
32 lines (31 loc) · 981 Bytes
/
nyc.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const babelConfig = require('@istanbuljs/nyc-config-babel');
// const hookRunInThisContextConfig = require('@istanbuljs/nyc-config-hook-run-in-this-context');
const typescript = require("@istanbuljs/nyc-config-typescript");
const { parserPlugins } = require('@istanbuljs/schema').defaults.nyc;
console.log(`Default plugins: ${parserPlugins}`)
console.log(`Typescript plugins: ${typescript.parserPlugins}`)
module.exports = {
...typescript,
...babelConfig,
// "extends": "@istanbuljs/nyc-config-typescript",
parserPlugins: parserPlugins.concat('typescript', 'decorators'),
"all": true,
"clean": true,
"esModules": true,
"reporter": ["html", "text", "json"],
"include": [
"**/*.{js,ts}",
"jest.preset.js",
"dist/**/*.{ts,js}"
],
"exclude": [
"**/*.spec.ts",
// "**/*.config.{ts,js}",
// "**/*.d.ts"
],
// "extension": [],
"instrument": false,
// "skip-full": true,
// 'excludeNodeModules': false,
'temp-dir': "./coverage"
}