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

optimizely / javascript-sdk / 18315953326
78%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2025 02:27PM UTC
Jobs 4
Files 121
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Oct 2025 02:25PM UTC coverage: 78.76% (-0.2%) from 78.946%
18315953326

push

github

web-flow
    [FSSDK-11879] flush events without closing client on page unload (#1087)

Currently, in browser, when the page is unloaded, the sdk instance is being closed in order to flush pending events. But when the page is loaded from [bfcache](https://developer.mozilla.org/en-US/docs/Glossary/bfcache), the sdk instance stays closed as bfcache restores the Javascript heap as well, which causes further events to be not processed. 

This PR updates the code to flush events on page unload without closing the sdk instance.

1458 of 2804 branches covered (52.0%)

Branch coverage included in aggregate %.

2 of 22 new or added lines in 8 files covered. (9.09%)

8832 of 10261 relevant lines covered (86.07%)

336.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.32
-3.01% lib/event_processor/forwarding_event_processor.ts
1
84.0
0.0% lib/index.browser.ts
3
5.88
-0.18% lib/odp/event_manager/odp_event_manager.ts
3
8.05
-0.28% lib/odp/odp_manager.ts
4
6.64
-0.12% lib/event_processor/batch_event_processor.ts
8
75.75
-1.03% lib/optimizely/index.ts
Jobs
ID Job ID Ran Files Coverage
1 run-22 - 18315953326.1 07 Oct 2025 02:27PM UTC 121
78.76
GitHub Action Run
2 run-24 - 18315953326.2 07 Oct 2025 02:27PM UTC 121
78.76
GitHub Action Run
3 run-18 - 18315953326.3 07 Oct 2025 02:27PM UTC 121
78.76
GitHub Action Run
4 run-20 - 18315953326.4 07 Oct 2025 02:27PM UTC 121
78.76
GitHub Action Run
Source Files on build 18315953326
  • Tree
  • List 121
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 99a4ca72 on github
  • Prev Build on master (#18291386101)
  • Next Build on master (#18506038421)
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