Skip to content

Commit f3d1b83

Browse files
committed
refactor: apply in rebased cases
1 parent 43cccac commit f3d1b83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/helpers/findAll.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReactTestInstance } from 'react-test-renderer';
22
import { getConfig } from '../config';
3-
import { isInaccessible } from './accessiblity';
3+
import { isHiddenFromAccessibility } from './accessiblity';
44

55
interface FindAllOptions {
66
hidden?: boolean;
@@ -19,5 +19,7 @@ export function findAll(
1919
}
2020

2121
const cache = new WeakMap<ReactTestInstance>();
22-
return results.filter((element) => !isInaccessible(element, { cache }));
22+
return results.filter(
23+
(element) => !isHiddenFromAccessibility(element, { cache })
24+
);
2325
}

website/docs/Queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ All queries have the `hidden` option which enables them to respect accessibility
382382

383383
You can configure the default value with the [`configure` function](API.md#configure).
384384

385-
An element is considered to be hidden from accessibility based on [`isInaccessible()`](./API.md#isinaccessible) function result.
385+
An element is considered to be hidden from accessibility based on [`isHiddenFromAccessibility()`](./API.md#ishiddenfromaccessibility) function.
386386

387387
**Examples**
388388

0 commit comments

Comments
 (0)