diff --git a/packages/jest-editor-support/src/Snapshot.js b/packages/jest-editor-support/src/Snapshot.js index 8b445a88a028..3faf510bbc29 100644 --- a/packages/jest-editor-support/src/Snapshot.js +++ b/packages/jest-editor-support/src/Snapshot.js @@ -110,7 +110,7 @@ export default class Snapshot { }; const Visitors = { Identifier(path, state, matchers) { - if (matchers.includes(path.node.name)) { + if (matchers.indexOf(path.node.name) >= 0) { state.found.push({ node: path.node, parents: getArrayOfParents(path),