chore: bump Jest typings (#396)

This commit is contained in:
Michał Pierzchała
2020-06-22 10:55:04 +02:00
committed by GitHub
parent 401d3d3dac
commit 362d3727bf
2 changed files with 502 additions and 435 deletions
File diff suppressed because it is too large Load Diff
+3 -8
View File
@@ -36,12 +36,8 @@ test('jest-native matchers work correctly', () => {
</View>
);
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByText('Enabled Button')).toBeEnabled();
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByText('Disabled Button')).not.toBeEnabled();
expect(getByText('Disabled Button')).toBeDisabled();
expect(getByText('Enabled Button')).not.toBeDisabled();
@@ -50,21 +46,20 @@ test('jest-native matchers work correctly', () => {
expect(getByA11yHint('Not Empty Text')).not.toBeEmpty();
expect(getByA11yHint('Not Empty View')).not.toBeEmpty();
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByA11yHint('Container View')).toContainElement(
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
getByA11yHint('First-Level Child')
);
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByA11yHint('Container View')).toContainElement(
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
getByText('Second-Level Child')
);
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByA11yHint('Container View')).not.toContainElement(
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
getByText('Enabled Button')
);
expect(getByA11yHint('Not Empty Text')).toHaveTextContent('Not empty');
// $FlowFixMe - TODO: fix @testing-library/jest-native flow typings
expect(getByA11yHint('Not Empty Text')).toHaveTextContent(/Not empty/);
expect(getByA11yHint('Not Empty Text')).not.toHaveTextContent('Is empty');