mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: bump Jest typings (#396)
This commit is contained in:
committed by
GitHub
parent
401d3d3dac
commit
362d3727bf
+499
-427
File diff suppressed because it is too large
Load Diff
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user