@uifabric/test-utilities
TypeScript icon, indicating that this package has built-in type declarations

7.3.5 • Public • Published

@uifabric/test-utilities

Provides a set of common test utilities for testing code within the Fluent UI React repo.

API

safeCreate(jsxContent, callback): void - Abstraction on create method in the react-test-renderer package which will auto unmount after executing the given callback.

Example:

safeCreate(<Foo />, foo => {
  // assert things about foo
});

safeMount(jsxContent, callback): void - Abstraction on mount method in enzyme package which will auto unmount after executing the given callback.

Example:

safeMount(<Foo />, foo => {
  // assert things about foo
});

Readme

Keywords

none

Package Sidebar

Install

npm i @uifabric/test-utilities

Weekly Downloads

17

Version

7.3.5

License

MIT

Unpacked Size

49.1 kB

Total Files

42

Last publish

Collaborators

  • microsoft1es
  • justslone
  • uifabricteam
  • dzearing