Skip to main content
What renderWithTap takes: its own three options, plus every CreateTapMockOptions member it forwards to the mock.

Extends

Properties

confirmAnswer?

What tap.ui.confirm resolves to. Defaults to true.

Inherited from

CreateTapMockOptions.confirmAnswer

container?

Passed to Testing Library’s render, for a mount point of your own.

context?

What tap.context holds. Defaults to empty.

Inherited from

CreateTapMockOptions.context

extensionId?

Defaults to starter, and has to match handler’s own extension id.

Inherited from

CreateTapMockOptions.extensionId

extensionName?

Defaults to Starter.

Inherited from

CreateTapMockOptions.extensionName

filters?

Merged over the fixture filter bar.

Inherited from

CreateTapMockOptions.filters

handler?

Your own handler, so tap.server.<name> goes through its real routes.

Inherited from

CreateTapMockOptions.handler

handlerToken?

A token to send to handler. Defaults to one the mock signs itself.

Inherited from

CreateTapMockOptions.handlerToken

installId?

Defaults to ins_test.

Inherited from

CreateTapMockOptions.installId

mock?

A mock you built yourself. Given, every mock option here is ignored.

params?

What tap.params holds, in the host’s positional shape. Defaults to empty.

Inherited from

CreateTapMockOptions.params

project?

Merged over the fixture Northlight project.

Inherited from

CreateTapMockOptions.project

queryClient?

Your own client, for a test that reads the cache. Defaults to a fresh one.

scopes?

What the install granted. Defaults to every scope.

Inherited from

CreateTapMockOptions.scopes

server?

One function per procedure, answering tap.server.<name> in process.

Inherited from

CreateTapMockOptions.server

size?

What tap.ui.size reports. Defaults to slot.

Inherited from

CreateTapMockOptions.size

storage?

The collections to expose, and the kind of each. Left out, every name works.

Inherited from

CreateTapMockOptions.storage

theme?

What useTapTheme reports. Defaults to light.

Inherited from

CreateTapMockOptions.theme