From 03a96c5392085adb0e2bb39df69b23a615173e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20=C3=85str=C3=B6m?= Date: Mon, 9 Dec 2019 08:54:22 +0100 Subject: [PATCH] fix: match lowercase base names --- commands/node/src/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/node/src/index.js b/commands/node/src/index.js index 1420624c..bd54b2e5 100644 --- a/commands/node/src/index.js +++ b/commands/node/src/index.js @@ -67,11 +67,7 @@ class Runner extends EventEmitter { .basename(f) .split('.') .shift(); - if (srcName[0] === srcName[0].toUpperCase()) { - // Might be react Component - return testName === `${srcName[0].toLowerCase()}${srcName.slice(1)}`; - } - return testName === srcName; + return testName.toLowerCase() === srcName.toLowerCase(); }); return found; }