inject

abstract fun inject(inject: ServiceProvider.() -> Unit): R

Injects services into the test context using the provided configuration block.

Return

An instance of type R, typically the test builder for method chaining.

Parameters

inject

A lambda function that configures services on a ServiceProvider instance.