rehypejs / rehype-react

Compare 46d3fb4 ... +0 ... b97da2f

Coverage Reach
lib/index.js index.js

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 3 files from the diff.
Other files ignored by Codecov
package.json has changed.
test.js has changed.

@@ -26,6 +26,7 @@
Loading
26 26
import {toH} from 'hast-to-hyperscript'
27 27
// @ts-expect-error: hush.
28 28
import tableCellStyle from '@mapbox/hast-util-table-cell-style'
29 +
import {whitespace} from 'hast-util-whitespace'
29 30
30 31
const own = {}.hasOwnProperty
31 32
const tableElements = new Set([
@@ -90,7 +91,7 @@
Loading
90 91
    // See: <https://github.com/facebook/react/pull/7515>.
91 92
    // See: <https://github.com/remarkjs/remark-react/issues/64>.
92 93
    if (children && tableElements.has(name)) {
93 -
      children = children.filter((child) => child !== '\n')
94 +
      children = children.filter((child) => !whitespace(child))
94 95
    }
95 96
96 97
    if (options.components && own.call(options.components, name)) {

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
index.js 100.00%
lib/index.js 100.00%
Project Totals (2 files) 100.00%
Loading