TestContextAssert

sealed external interface TestContextAssert(source)

Functions

Link copied to clipboard
abstract fun fileSnapshot(value: Any?, path: String, options: AssertSnapshotOptions = definedExternally)

This function serializes value and writes it to the file specified by path.

Link copied to clipboard
abstract operator fun get(key: String): Function<Unit>?

A custom assertion function registered with assert.register().

Link copied to clipboard
abstract operator fun set(key: String, value: Function<Unit>?)
Link copied to clipboard
abstract fun snapshot(value: Any?, options: AssertSnapshotOptions = definedExternally)

This function implements assertions for snapshot testing.