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[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
  7. def actSync[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
  8. def act_[F[_], A](body: => A)(implicit F: Async[F]): F[A]
    Definition Classes
    ReactTestUtils2
    Annotations
    @inline()
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def newElement(): Element
    Definition Classes
    ReactTestUtils2
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  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. def rendered[F[_], A](unmounted: A)(implicit arg0: Async[F], arg1: Renderable[A]): Resource[F, TestDomWithRoot]
    Definition Classes
    ReactTestUtils2
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def withElement[F[_]](implicit arg0: Async[F]): Resource[F, Element]
    Definition Classes
    ReactTestUtils2
  32. val withElementSync: WithDsl[Element, ImplicitUnit]
    Definition Classes
    ReactTestUtils2
  33. def withReactRoot[F[_]](implicit arg0: Async[F]): Resource[F, TestReactRoot]
    Definition Classes
    ReactTestUtils2
  34. val withReactRootSync: WithDsl[TestReactRoot, ImplicitUnit]
    Definition Classes
    ReactTestUtils2
  35. def withRendered[F[_], A, B](unmounted: A)(f: (TestDomWithRoot) => F[B])(implicit arg0: Async[F], arg1: Renderable[A]): F[B]
    Definition Classes
    ReactTestUtils2
  36. def withRenderedSync[A](unmounted: A): WithDsl[TestDomWithRoot, Renderable[A]]
    Definition Classes
    ReactTestUtils2
  37. def withRendered_[F[_], A, B](unmounted: A)(f: (TestDomWithRoot) => B)(implicit arg0: Async[F], arg1: Renderable[A]): F[B]
    Definition Classes
    ReactTestUtils2

Inherited from ReactTestUtils2

Inherited from AnyRef

Inherited from Any

Ungrouped