japgolly.scalajs.react.test

Members list

Type members

Classlikes

class MockRouterCtl[P](baseUrl: BaseUrl, pageToPath: P => Path) extends MockRouterCtlF[Sync, P]

Mock RouterCtl that does nothing but record events.

Mock RouterCtl that does nothing but record events.

Call events to inspect recorded events, and clear to clear them.

Attributes

Companion
object
Supertypes
class MockRouterCtlF[Sync, P]
class RouterCtlF[Sync, P]
class Object
trait Matchable
class Any
object MockRouterCtl

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class MockRouterCtlF[F[_], P](val baseUrl: BaseUrl, pageToPath: P => Path)(implicit ff: Sync[F]) extends RouterCtlF[F, P]

Mock RouterCtl that does nothing but record events.

Mock RouterCtl that does nothing but record events.

Call events to inspect recorded events, and clear to clear them.

Attributes

Companion
object
Supertypes
class RouterCtlF[F, P]
class Object
trait Matchable
class Any
Known subtypes
class MockRouterCtl[P]
Self type

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class ReactEventType

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Animation.type
object Basic.type
object Clipboard.type
object Composition.type
object Drag.type
object Focus.type
object Form.type
object Keyboard.type
object Mouse.type
object Pointer.type
object Touch.type
object Transition.type
object UI.type
object Wheel.type
Show all

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ReactTestUtils.type
object ReactTestUtilsConfig extends ReactTestUtilsConfigTypes

Attributes

Supertypes
trait ReactTestUtilsConfigTypes
class Object
trait Matchable
class Any
Self type
object ReactTestVar

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class ReactTestVarF[F[_], A](val initialValue: A)(implicit val sync: Sync[F])

Houses a variable and provides React-like access to it.

Houses a variable and provides React-like access to it.

Provides mock-like instances of the following:

  • Reusable functions
  • StateAccess
  • StateSnapshot
  • StateSnapshot with Reusability

It also keeps a log of changes, accessible via .history().

Type parameters

A

The variable type.

Attributes

Since

0.11.0

Companion
object
Supertypes
class Object
trait Matchable
class Any
object ReactTestVarF

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object SimEvent

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
SimEvent.type
object Simulate

https://reactjs.org/docs/test-utils.html#simulate

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Simulate.type
class Simulation(_run: (() => ReactOrDomNode) => Unit)

Allows composition and abstraction of ReactTestUtils.Simulate procedures.

Allows composition and abstraction of ReactTestUtils.Simulate procedures.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Simulation

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Simulation.type
class TestBroadcaster[I, A](initialValue: A, f: I => A) extends TestBroadcasterF[Sync, I, A], Broadcaster[I]

Attributes

Companion
object
Supertypes
trait Broadcaster[I]
trait Listenable[I]
class TestBroadcasterF[Sync, I, A]
trait BroadcasterF[Sync, I]
trait ListenableF[Sync, I]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class TestBroadcasterF[F[_], I, A](initialValue: A, f: I => A) extends BroadcasterF[F, I]

Attributes

Supertypes
trait BroadcasterF[F, I]
trait ListenableF[F, I]
class Object
trait Matchable
class Any
Known subtypes
class TestBroadcaster[I, A]
Self type
TestBroadcasterF[F, I, A]

Types

type ReactOrDomNode = ReactOrDomNode
type ReactTestVar[A] = ReactTestVarF[Sync, A]

Implicits

Implicits

implicit def reactOrDomNodeFromMounted(m: MountedRaw): ReactOrDomNode
implicit def reactOrDomNodeFromVRE(m: VdomElement): ReactOrDomNode

Inherited implicits

final implicit def reactTestExtMountedImpure[A[_], P, S](m: MountedSimple[Id, A, P, S]): ReactTestExt_MountedSimple[Id, A, P, S]

Attributes

Inherited from:
ReactTestUtilExtensions
final implicit def reactTestExtMountedSimple[F[_], A[_], P, S](m: MountedSimple[F, A, P, S]): ReactTestExt_MountedSimple[F, A, P, S]

Attributes

Inherited from:
ReactTestUtilExtensions1