Skip to content

Commit cd54847

Browse files
committed
add computeCloseMatches config option
1 parent b12cb29 commit cd54847

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ let config = {
3333
},
3434
_disableExpensiveErrorDiagnostics: false,
3535
computedStyleSupportsPseudoElements: false,
36+
computeCloseMatches: false,
3637
}
3738

3839
export const DEFAULT_IGNORE_TAGS = 'script, style'

src/queries/test-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const getMultipleError = (c, id) =>
1515
const getMissingError = (
1616
c,
1717
id,
18-
{computeCloseMatches = false, ...options} = {},
18+
{computeCloseMatches = getConfig().computeCloseMatches, ...options} = {},
1919
) => {
2020
const defaultMessage = `Unable to find an element by: [${getTestIdAttribute()}="${id}"]`
2121

0 commit comments

Comments
 (0)