Files
callstack__react-native-tes…/test-coverage-progress.txt
T

13 lines
4.4 KiB
Plaintext

test(render): Basic render function test - validates that users can render components and query rendered elements. Coverage: 77.31% statements, 66.66% branches, 75% functions for render.tsx. Uncovered: rerender, unmount, toJSON methods, root getter error path, debug function.
test(queries/text): Validates getByText with exact:false option for partial text matching - critical for testing dynamic/long text content. Coverage: 100% statements, 100% branches (was 80%), 66.66% functions for text.ts. Covered options parameter branch.
test(queries/role): Validates getByRole name option fallback to text content when accessible name is not set - critical for testing components without explicit accessibility labels. Coverage: 81.1% statements (was 61.41%), 61.11% branches, 66.66% functions for role.ts. Covered text fallback path in matchAccessibleNameIfNeeded.
test(queries/display-value): Validates getByDisplayValue finds TextInput elements by their display value - critical for testing forms where users need to verify input values. Coverage: 97.1% statements (was 78.26%), 85.71% branches, 66.66% functions for display-value.ts. Covered matchDisplayValue function and query logic. Uncovered: error message functions (getMultipleError, getMissingError).
test(queries/placeholder-text): Validates getByPlaceholderText finds TextInput elements by their placeholder text - critical for testing forms where users need to find inputs by placeholder. Coverage: 97.01% statements (was 79.1%), 85.71% branches, 66.66% functions for placeholder-text.ts. Covered matchPlaceholderText function and query logic. Uncovered: error message functions (getMultipleError, getMissingError).
test(queries/label-text): Validates getByLabelText finds elements by their accessibility label - critical for testing accessibility where labels identify interactive elements. Coverage: 96.42% statements (was 87.5%), 100% branches, 50% functions for label-text.ts. Covered queryAllByLabelText function body and query logic. Uncovered: error message functions (getMultipleError, getMissingError).
test(queries/hint-text): Validates getByHintText finds elements by their accessibility hint with exact matching - critical for testing accessibility where hints provide additional context to screen readers. Coverage: 97.93% statements (was 93.81%), 83.33% branches, 66.66% functions for hint-text.ts. Covered getNodeByHintText function with exact option and query logic. Uncovered: error message functions (getMultipleError, getMissingError).
test(queries/test-id): Validates getByTestId with exact:false option for partial testID matching - critical for testing components with dynamic or prefixed testIDs. Coverage: 96.42% statements (was 89.28%), 83.33% branches, 66.66% functions for test-id.ts. Covered matchTestId function with exact option and queryAllByTestId implementation. Uncovered: error message functions (getMultipleError, getMissingError).
test(wait-for): Validates waitFor timeout behavior when expectation never passes - critical error handling users depend on when async conditions fail. Coverage: 55% statements (was 12%), 43.47% branches, 85.71% functions for wait-for.ts. Covered timeout error path and lastError handling. Uncovered: fake timers path, promise-returning expectations, onTimeout callback, timer switching errors.
test(wait-for-element-to-be-removed): Validates error when element is already removed at call time - critical error handling users depend on when misusing the API. Coverage: 61.9% statements (was 9.52%), 66.66% branches, 100% functions for wait-for-element-to-be-removed.ts. Covered isRemoved helper and initial validation error path. Uncovered: wait logic (lines 27-42).
test(render-hook): Validates renderHook with initial props and rerender functionality - critical API users depend on for testing React hooks with props. Coverage: 100% statements (was 5.66%), 85.71% branches, 100% functions for render-hook.tsx. Covered hook rendering, initialProps, rerender with new props. Uncovered: line 41 (options destructuring edge case).
test(fire-event): Validates fireEvent.press invokes event handler on element - critical API users depend on for testing user interactions. Coverage: 77.27% statements (was 33.33%), 53.33% branches, 87.5% functions for fire-event.ts. Covered main fireEvent function, findEventHandler traversal, handler invocation. Uncovered: isTouchResponder, isEventEnabled edge cases, setNativeStateIfNeeded, tryGetContentOffset.