mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 17:42:24 +08:00
[tests] added coverage support
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
{
|
||||
"presets": [
|
||||
"react-native"
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": [
|
||||
["istanbul", {
|
||||
"include": [
|
||||
"**/firebase/**.js"
|
||||
]
|
||||
}]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,10 @@ import config from './config/index';
|
||||
import performance from './perf/index';
|
||||
import admob from './admob/index';
|
||||
|
||||
window.getCoverage = function getCoverage() {
|
||||
return (JSON.stringify(global.__coverage__));
|
||||
};
|
||||
|
||||
const testSuiteInstances = [
|
||||
database,
|
||||
auth,
|
||||
|
||||
Reference in New Issue
Block a user