Skip to content

Commit

Permalink
Merge pull request #4452 from human-readable/master
Browse files Browse the repository at this point in the history
bug-fix-jest-addon-undefined-file-extension
  • Loading branch information
wuweiweiwu committed Oct 20, 2018
2 parents bf64c0e + ccef149 commit b174859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/jest/src/index.js
Expand Up @@ -2,9 +2,9 @@ import addons from '@storybook/addons';
import deprecate from 'util-deprecate';
import { normalize } from 'upath';

const findTestResults = (testFiles, jestTestResults, jestTestFilesOptions) =>
const findTestResults = (testFiles, jestTestResults, jestTestFilesExt) =>
Object.values(testFiles).map(name => {
const fileName = `${name}${jestTestFilesOptions.filesExt}`;
const fileName = `${name}${jestTestFilesExt}`;
if (jestTestResults && jestTestResults.testResults) {
return {
fileName,
Expand Down

0 comments on commit b174859

Please sign in to comment.