object ReactTestUtils2 extends ReactTestUtils2

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReactTestUtils2
  2. ReactTestUtils2
  3. ReactTestUtilExtensions
  4. ReactTestUtilExtensions1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type CompType = ComponentRaw { type Raw <: japgolly.scalajs.react.facade.React.ComponentClassUntyped }
    Definition Classes
    ReactTestUtils2
  2. type Unmounted = UnmountedSimple[_, Unit]
    Definition Classes
    ReactTestUtils2

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def IsReactActEnvironment(): Boolean
    Definition Classes
    ReactTestUtils2
  5. def IsReactActEnvironment_=(b: Boolean): Unit
    Definition Classes
    ReactTestUtils2
  6. def act[A](body: => A): A

    When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface.

    When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:

    act {
      // render components
    }
    // make assertions

    This helps make your tests run closer to what real users would experience when using your application.

    Definition Classes
    ReactTestUtils2
  7. def actAsync[F[_], A](body: F[A])(implicit F: Async[F]): F[A]

    When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface.

    When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:

    await act(async () => {
      // render components
    });
    // make assertions

    This helps make your tests run closer to what real users would experience when using your application.

    Definition Classes
    ReactTestUtils2
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def newElement(): Element
    Definition Classes
    ReactTestUtils2
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val raw: facade.ReactTestUtils.type
  21. implicit final def reactTestExtMountedImpure[A[_], P, S](m: MountedSimple[Id, A, P, S]): ReactTestExt_MountedSimple[Id, A, P, S]
    Definition Classes
    ReactTestUtilExtensions
  22. implicit final def reactTestExtMountedSimple[F[_], A[_], P, S](m: MountedSimple[F, A, P, S]): ReactTestExt_MountedSimple[F, A, P, S]
    Definition Classes
    ReactTestUtilExtensions1
  23. def removeElement(e: Element): Unit
    Definition Classes
    ReactTestUtils2
  24. def removeReactInternals(html: String): String

    Turn <div data-reactroot="">hello&lt/div> into <div>hello&lt/div>

    Turn <div data-reactroot="">hello&lt/div> into <div>hello&lt/div>

    Definition Classes
    ReactTestUtils2
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. val withElement: WithDsl[Element, ImplicitUnit]
    Definition Classes
    ReactTestUtils2
  31. val withReactRoot: WithDsl[TestReactRoot, ImplicitUnit]
    Definition Classes
    ReactTestUtils2
  32. def withRendered[A](unmounted: A): WithDsl[TestDomWithRoot, Renderable[A]]
    Definition Classes
    ReactTestUtils2

Inherited from ReactTestUtils2

Inherited from AnyRef

Inherited from Any

Ungrouped