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

Khan / perseus / 5981240534
69%

Build:
DEFAULT BRANCH: main
Ran 25 Aug 2023 11:17PM UTC
Jobs 2
Files 533
Run time 13s
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

25 Aug 2023 11:14PM UTC coverage: 69.364% (+0.003%) from 69.361%
5981240534

push

github

web-flow
Propogate 'static' functions for Expression on exported forwardRef component (#694)

## Summary:

In #601 I worked out providing our new V2 PerseusDependencies to the Expression component by wrapping it in a `forwardRef<>` functional component and using a hook to get access to the dependencies. 

This worked, until we discovered that there is code in some consuming applications that calls static functions on our Widget components. 

This PR patches the exported functional component to provide the same 3 static functions. In the future, we will want a more robust solution, possibly moving this functionality into our renderers so that consuming applications don't deal with widgets directly.

Issue: LC-1180

## Test plan:

`yarn test`

Wait for this PR to push a snapshot npm package and then integrate with Webapp and test.

Author: jeremywiebe

Reviewers: handeyeco

Required Reviewers:

Approved By: handeyeco

Checks: ✅ finish_coverage, ✅ Publish npm snapshot (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/694

7648 of 16634 branches covered (0.0%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 3 files covered. (100.0%)

71723 of 97792 relevant lines covered (73.34%)

710.32 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 jest 5981240534.1 25 Aug 2023 11:24PM UTC 0
63.35
GitHub Action Run
2 cypress 5981240534.2 25 Aug 2023 11:17PM UTC 0
26.13
GitHub Action Run
Source Files on build 5981240534
Detailed source file information is not available for this build.
  • Back to Repo
  • 0f95281c on github
  • Prev Build on main (#5976872949)
  • Next Build on main (#5981712826)
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

© 2026 Coveralls, Inc