test_each_rendered_component_is_a_jsx_site

Tests › tests/test_jsx_edges.py

passed Passed in the packaged run.

What this test is for

Why it exists

Every component used in JSX is a site, tagged jsx .

Given

  1. names = {site[0] for site in _jsx_sites(_PAGE)}
→

When

  1. —
→

Then

  1. ✓ {"Layout", "Card", "Item"} is at most names

tests/test_jsx_edges.py:58 · its file's page

What it checks (1)

  1. assert {"Layout", "Card", "Item"} <= names, names observes _jsx_sites via names

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_each_rendered_component_is_a_jsx_site→_jsx_sites

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

Also reaches 1 requirement

Its run touches their code; that is reach, not proof.