Fix fileName regex

This commit is contained in:
Anton Savoskin 2019-04-16 22:39:06 +07:00
parent 2887028ad2
commit 213ebc8883

View File

@ -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);