Skip to main content

Interface: RenderedAttributes

Defined in: packages/testing/src/a11y.ts:46

What the component actually rendered, reduced to attributes. A DOM element, an RNTL host node's props, or a plain object all reduce to this — which is what keeps this helper usable from Vitest + RTL and Jest + RNTL alike.

Indexable​

[key: string]: unknown

Properties​

props?​

optional props?: Record<string, unknown>;

Defined in: packages/testing/src/a11y.ts:48

Methods​

getAttribute()?​

optional getAttribute(name): string | null;

Defined in: packages/testing/src/a11y.ts:47

Parameters​

ParameterType
namestring

Returns​

string | null