Skip to content

Lupa API Reference / testing/fixture / FixtureRenderOptions

Interface: FixtureRenderOptions

Defined in: src/testing/fixture.ts:25

Options for the fixture function.

Extends

  • RenderOptions

Properties

creationScope?

optional creationScope?: object

Defined in: node_modules/lit-html/development/lit-html.d.ts:363

Node used for cloning the template (importNode will be called on this node). This controls the ownerDocument of the rendered DOM, along with any inherited context. Defaults to the global document.

importNode()

importNode(node, deep?): Node

Parameters
node

Node

deep?

boolean

Returns

Node

Inherited from

RenderOptions.creationScope


host?

optional host?: object

Defined in: node_modules/lit-html/development/lit-html.d.ts:353

An object to use as the this value for event listeners. It's often useful to set this to the host component rendering a template.

Inherited from

RenderOptions.host


isConnected?

optional isConnected?: boolean

Defined in: node_modules/lit-html/development/lit-html.d.ts:374

The initial connected state for the top-level part being rendered. If no isConnected option is set, AsyncDirectives will be connected by default. Set to false if the initial render occurs in a disconnected tree and AsyncDirectives should see isConnected === false for their initial render. The part.setConnected() method must be used subsequent to initial render to change the connected state of the part.

Inherited from

RenderOptions.isConnected


noWait?

optional noWait?: boolean

Defined in: src/testing/fixture.ts:30

By default fixture waits for the next animation frame to ensure elements are upgraded and connected. Set this to true to skip this wait.


renderBefore?

optional renderBefore?: ChildNode | null

Defined in: node_modules/lit-html/development/lit-html.d.ts:357

A DOM node before which to render content in the container.

Inherited from

RenderOptions.renderBefore