Skip to content

Commit e477bed

Browse files
authored
[MOB-10148] Extract Instabug to its own Module (#780)
* Extract Instabug to its own Module * Fix TypeScript Validator * Call `Instabug.start` before testing Global Handler * Ease codedov target coverage
1 parent cebd134 commit e477bed

File tree

7 files changed

+838
-840
lines changed

7 files changed

+838
-840
lines changed

codecov.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ coverage:
88
range: "70...100"
99

1010
status:
11-
project: yes
11+
patch:
12+
default:
13+
target: 80%

example/__tests__/instabugUtils.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jest.mock(
2323
describe('Test global error handler', () => {
2424
const sendJSCrash = jest.spyOn(NativeModules.Instabug, 'sendJSCrash');
2525
beforeEach(() => {
26-
// var InstabugUtils = require('../utils/InstabugUtils');
26+
Instabug.start("", [Instabug.invocationEvent.none]);
2727
});
2828

2929
it('should call sendJSCrash when platform is ios', () => {

0 commit comments

Comments
 (0)