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

Khan / perseus / 5956285679 / 2 – jest
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2023 08:55PM UTC
Files 525
Run time 10s
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

23 Aug 2023 08:44PM UTC coverage: 63.29% (-0.007%) from 63.297%
jest – 5956285679.2

push

github

web-flow
Convert all JSX.LibraryManagedAttributes to use PropsFor<> (#691)

## Summary:

Previously in Flow we had a simple type for exatracting prop types of a component while reatining their optionality: `React.ElementConfig<typeof MyComponent>`. In TypeScript the equivalent is alot uglier:

```javascript 
JSX.LibraryManagedAttributes<
   typeof MyComponent,
   React.ComponentProps<typeof MyComponent>
>
```

Wonder Stuff Core recently added a helper named `PropsFor<>` that works like Flow's `ElmeentConfig<T>` and so this PR adapts to use that new type.

One related fix I made was to remove the `context` object from the `Renderer`'s constructor. That's a deprecated pattern in React and I couldn't find any usages that do that. 

Issue: "none"

## Test plan:

`yarn typecheck`
`yarn test` (just to be safe)

Author: jeremywiebe

Reviewers: somewhatabstract, #perseus

Required Reviewers:

Approved By: somewhatabstract

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

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

5754 of 7024 branches covered (81.92%)

Branch coverage included in aggregate %.

70158 of 112919 relevant lines covered (62.13%)

458.51 hits per line

Source Files on job jest - 5956285679.2
  • Tree
  • List 0
  • Changed 11
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5956285679
  • aea86eec on github
  • Prev Job for on main (#5942350205.2)
  • Next Job for on main (#5966601371.1)
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