[tests] fix coverage

This commit is contained in:
Salakar 2018-04-09 11:11:42 +01:00
parent 00cd05b9a7
commit 93323a9e40
3 changed files with 23 additions and 18 deletions

View File

@ -5,21 +5,25 @@
"env": { "env": {
"development": { "development": {
"plugins": [ "plugins": [
["istanbul", { [
"useInlineSourceMaps": true, "module-resolver",
"instrument": true, {
"include": [
"lib/*"
],
"exclude": [
"node_modules"
]
}],
["module-resolver", {
"alias": { "alias": {
"react-native-firebase": ".." "react-native-firebase": ".."
} }
}] }
],
[
"istanbul",
{
"useInlineSourceMaps": true,
"instrument": true,
"relativePath": false,
"include": [
"**/dist/**"
]
}
]
] ]
} }
} }

View File

@ -1,6 +1,6 @@
--recursive --recursive
--timeout 120000 --timeout 120000
--slow 1 --slow 200
--bail --bail
--exit --exit
--require bridge/platform/node --require bridge/platform/node

View File

@ -56,10 +56,11 @@
"statements": 95, "statements": 95,
"functions": 95, "functions": 95,
"branches": 95, "branches": 95,
"include": ["lib/*"], "include": ["**/dist/**"],
"exclude": ["node_modules"], "exclude": ["node_modules"],
"sourceMap": false, "sourceMap": true,
"instrument": false, "instrument": true,
"cwd": "..",
"reporter": ["lcov", "text-summary"] "reporter": ["lcov", "text-summary"]
}, },
"detox": { "detox": {