@fluentui/test-utilities v8.4.0
@fluentui/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
});!WARNING This api is deprecated. use
@testing-library/reactinstead
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
});6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago