mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Fix fileName regex
This commit is contained in:
parent
2887028ad2
commit
213ebc8883
@ -9,7 +9,7 @@ const findTestResults = (
|
||||
jestTestFilesExt: string
|
||||
) =>
|
||||
Object.values(testFiles).map(name => {
|
||||
const fileName = `${name}${jestTestFilesExt}`;
|
||||
const fileName = `[\\/\\\\]${name}${jestTestFilesExt}`;
|
||||
|
||||
if (jestTestResults && jestTestResults.testResults) {
|
||||
const fileNamePattern = new RegExp(fileName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user