@brightinteractive/bright-js-framework

@brightinteractive/bright-js-framework/test-utils

interface ControllerTestFixtureProps
interface ServiceTestFixtureProps<ServiceType>
interface TestFixtureProps
class ControllerTestFixture<T>

Utility class for providing the application context to a react component and mounting test components using enzyme.

class ServiceTestFixture<ServiceType>

Utility class for providing the application context to a service, including lifecycle hooks and injecting all dependencies

You can optionally provide an array of plugins, which should generally be stub implementations of interfaces used in your applications. These can be stubbed using the stub() method.

class TestFixture<Instance>

Utility class for providing the application context to classes that require it.

You can optionally provide an array of plugins, which should generally be stub implementations of interfaces used in your applications. These can be stubbed using the stub() method.

function controllerTestFixture(props: ControllerTestFixtureProps): Promise
function serviceTestFixture(props: ServiceTestFixtureProps<ServiceType>): Promise