From 8565613614aecf5ecbd7f9f0f35394c20ff52fa9 Mon Sep 17 00:00:00 2001 From: Promise Tochi Date: Sat, 25 Nov 2017 16:09:42 +0100 Subject: [PATCH] Made jest test file extension name optional --- addons/jest/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/jest/src/index.js b/addons/jest/src/index.js index e302a7a0f077..b68a1e0b83fd 100644 --- a/addons/jest/src/index.js +++ b/addons/jest/src/index.js @@ -1,6 +1,6 @@ import addons from '@storybook/addons'; -const findTestResults = (testFiles, jestTestResults, jestTestFilesExt) => +const findTestResults = (testFiles, jestTestResults, jestTestFilesExt = "") => testFiles.map(name => { if (jestTestResults && jestTestResults.testResults) { return {