Skip to content

Conversation

@florian-lefebvre
Copy link
Collaborator

@florian-lefebvre florian-lefebvre commented Nov 24, 2025

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.02%. Comparing base (4c78160) to head (96d3a41).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #297      +/-   ##
==========================================
+ Coverage   98.95%   99.02%   +0.07%     
==========================================
  Files          11       11              
  Lines         480      515      +35     
  Branches      119      132      +13     
==========================================
+ Hits          475      510      +35     
  Misses          5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@florian-lefebvre florian-lefebvre marked this pull request as ready for review November 25, 2025 16:18
subsets: ['latin'],
weights: ['400'],
})
expect(fonts.length).toBe(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have an example of a provider returning several different formats we could test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -71 to -73
const styles = [
'oblique 0deg 15deg',
'normal',
] as ResolveFontOptions['styles']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we're not testing the different styles/weights?

Copy link
Collaborator Author

@florian-lefebvre florian-lefebvre Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC that's because since it's now woff2 only, there's no woff fallback with more classic values. Since this test is about testing variable axis, not the fallbakcs, I thought it'd be fine to remove. I can restore it and specify formats: ['woff2', 'woff'] if you want! No strong opinion

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is phenomenal! great work.

just a few quick questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support woff files in the fontsource provider

3 participants