• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HuolalaTech / page-spy / 9186207604

22 May 2024 06:09AM CUT coverage: 55.666% (-7.3%) from 63.012%
9186207604

Pull #87

github

web-flow
Merge e1d1d54af into 12069874f
Pull Request #87: React Native sdk

1353 of 1530 branches covered (88.43%)

Branch coverage included in aggregate %.

83 of 1570 new or added lines in 22 files covered. (5.29%)

5529 of 10833 relevant lines covered (51.04%)

28.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/page-spy-react-native/src/plugins/network/index.ts
NEW
1
// eslint-disable no-case-declarations
×
NEW
2
import type { PageSpyPlugin } from '@huolala-tech/page-spy-types';
×
NEW
3
import XhrProxy from './proxy/xhr-proxy';
×
NEW
4
import FetchProxy from './proxy/fetch-proxy';
×
NEW
5

×
NEW
6
export default class NetworkPlugin implements PageSpyPlugin {
×
NEW
7
  public name = 'NetworkPlugin';
×
NEW
8

×
NEW
9
  public xhrProxy: XhrProxy | null = null;
×
NEW
10
  public fetchProxy: FetchProxy | null = null;
×
NEW
11

×
NEW
12
  public static hasInitd = false;
×
NEW
13

×
NEW
14
  public onInit() {
×
NEW
15
    if (NetworkPlugin.hasInitd) return;
×
NEW
16
    NetworkPlugin.hasInitd = true;
×
NEW
17

×
NEW
18
    this.fetchProxy = new FetchProxy();
×
NEW
19
    this.xhrProxy = new XhrProxy();
×
NEW
20
  }
×
NEW
21

×
NEW
22
  public onReset() {
×
NEW
23
    this.fetchProxy?.reset();
×
NEW
24
    this.xhrProxy?.reset();
×
NEW
25
    NetworkPlugin.hasInitd = false;
×
NEW
26
  }
×
NEW
27
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc