diff --git a/addons/jest/src/index.ts b/addons/jest/src/index.ts index 7e6b2ac09c6..5d72aa28228 100644 --- a/addons/jest/src/index.ts +++ b/addons/jest/src/index.ts @@ -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);