fix: Flow types (#16)

- [x] - Add flow to tests
- [x] - Fix flow typings
- [x] - Update documentation
This commit is contained in:
Kacper Wiszczuk
2018-10-07 14:50:05 +02:00
committed by Michał Pierzchała
parent d2e00f5264
commit 4f0501e6b5
7 changed files with 1160 additions and 30 deletions
+2 -2
View File
@@ -102,11 +102,11 @@ type ReactTestInstance = {
};
```
### `getByName: (name: string | React.Element<*>)`
### `getByName: (name: string | React.ComponentType<*>)`
A method returning a `ReactTestInstance` with matching name – may be a string or React Element. Throws when no matches.
### `getAllByName: (name: string | React.Element<*>)`
### `getAllByName: (name: string | React.ComponentType<*>)`
A method returning an array of `ReactTestInstance`s with matching name – may be a string or React Element.