Builder

class Builder

Builder for MutationPreviewClient.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds a new instance of MutationPreviewClient with the registered preview states.

Link copied to clipboard
fun <T, S> on(id: MutationId<T, S>, snapshot: () -> MutationState<T>)

Registers a preview state for the mutation with the specified ID.

fun <T, S> on(testTag: MutationTestTag<T, S>, snapshot: () -> MutationState<T>)

Registers a preview state for the mutation with the specified test tag.