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

optimizely / javascript-sdk / 19867184772
78%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2025 05:14PM UTC
Jobs 4
Files 126
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

02 Dec 2025 05:12PM UTC coverage: 77.752% (-0.6%) from 78.387%
19867184772

push

github

web-flow
[FSSDK-12092] add platform verification for imports  (#1112)

This PR implements a comprehensive platform isolation system for a multi-platform JavaScript SDK that supports Browser, Node.js, and React Native. The system enforces that platform-specific code cannot be imported by incompatible platforms, preventing runtime errors when bundling for different targets.

**Key changes:**
- Adds validation scripts that check `__platforms` exports and import compatibility
- Adds script to automatically add `__platforms` exports based on file name
- Integrates ESLint rule to enforce platform declarations at development time
- Adds extensive documentation and troubleshooting guides
- Updates all source files to include `__platforms` exports

1526 of 3001 branches covered (50.85%)

Branch coverage included in aggregate %.

142 of 226 new or added lines in 99 files covered. (62.83%)

9014 of 10555 relevant lines covered (85.4%)

334.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
68.85
eslint-local-rules/require-platform-declaration.js
74
21.79
scripts/platform-utils.js
Jobs
ID Job ID Ran Files Coverage
1 run-20 - 19867184772.1 02 Dec 2025 05:14PM UTC 126
77.75
GitHub Action Run
2 run-18 - 19867184772.2 02 Dec 2025 05:14PM UTC 126
77.75
GitHub Action Run
3 run-22 - 19867184772.3 02 Dec 2025 05:14PM UTC 126
77.75
GitHub Action Run
4 run-24 - 19867184772.4 02 Dec 2025 05:14PM UTC 126
77.75
GitHub Action Run
Source Files on build 19867184772
  • Tree
  • List 126
  • Changed 95
  • Source Changed 0
  • Coverage Changed 95
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • fe00123b on github
  • Prev Build on master (#19503754350)
  • Next Build on master (#19965255095)
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