From 412dd615080b9462d251df0df8a922bb73099fa3 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 9 Oct 2017 21:45:03 +0200 Subject: [PATCH] Fix editor support test for node 4 (#4640) --- packages/jest-editor-support/src/Snapshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),