Closed angeloashmore closed 1 year ago
Merging #152 (aaca585) into master (c6e3a12) will decrease coverage by
0.80%
. The diff coverage is40.00%
.
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
- Coverage 91.79% 90.99% -0.81%
==========================================
Files 18 18
Lines 317 322 +5
Branches 75 77 +2
==========================================
+ Hits 291 293 +2
- Misses 5 6 +1
- Partials 21 23 +2
Impacted Files | Coverage Ξ | |
---|---|---|
src/PrismicText.tsx | 76.92% <40.00%> (-23.08%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update c6e3a12...aaca585. Read the comment docs.
Path | Size |
---|---|
dist/index.js | 5.47 KB (+3% πΊ) |
dist/index.cjs | 7 KB (+2.35% πΊ) |
Types of changes
Description
This PR adds a development-only error handler to the
<PrismicText>
component.When
<PrismicText>
is given a field value not from a Rich Text or Title field, an error is thrown with a helpful message.See the full message in
messages/prismictext-is-only-for-rich-text-fields.md
.For more details, see #149.
Checklist:
π