File tree Expand file tree Collapse file tree
packages/extension/src/Observers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class TestResultObserver implements TestRunnerObserver {
7575 return message ;
7676 }
7777
78- const matchingDetail = details . find ( ( { file } ) => file . endsWith ( resultFile ) ) ;
78+ const matchingDetail = details . find ( ( { file } ) => file === resultFile ) ;
7979 const line = matchingDetail ? matchingDetail . line - 1 : ( test . range ?. start . line ?? 0 ) ;
8080
8181 message . location = new Location (
@@ -86,7 +86,7 @@ export class TestResultObserver implements TestRunnerObserver {
8686 message . stackTrace = details
8787 . filter (
8888 ( { file, line } ) =>
89- file . endsWith ( resultFile ) && ( ! matchingDetail || line !== matchingDetail . line ) ,
89+ file === resultFile && ( ! matchingDetail || line !== matchingDetail . line ) ,
9090 )
9191 . map (
9292 ( { file, line } ) =>
You can’t perform that action at this time.
0 commit comments