File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ namespace Harness {
99 const seen = new Map < string , string > ( ) ;
1010 const dupes : [ string , string ] [ ] = [ ] ;
1111 for ( const runner of runners ) {
12- for ( const sf of runner . enumerateTestFiles ( ) ) {
13- const full = typeof sf === "string" ? sf : sf . file ;
14- const base = vpath . basename ( full ) . toLowerCase ( ) ;
15- // exempt fourslash-fourslash conflicts since they're less likely to emit baselines
16- if ( seen . has ( base ) && ! ( / f o u r s l a s h / . test ( seen . get ( base ) ! ) && / f o u r s l a s h / . test ( full ) ) ) {
17- dupes . push ( [ seen . get ( base ) ! , full ] ) ;
18- }
19- else {
20- seen . set ( base , full ) ;
12+ if ( runner instanceof CompilerBaselineRunner || runner instanceof FourSlashRunner ) {
13+ for ( const sf of runner . enumerateTestFiles ( ) ) {
14+ const full = typeof sf === "string" ? sf : sf . file ;
15+ const base = vpath . basename ( full ) . toLowerCase ( ) ;
16+ // allow existing dupes in fourslash/shims and fourslash/server
17+ if ( seen . has ( base ) && ! / f o u r s l a s h \/ ( s h i m | s e r v e r ) / . test ( full ) ) {
18+ dupes . push ( [ seen . get ( base ) ! , full ] ) ;
19+ }
20+ else {
21+ seen . set ( base , full ) ;
22+ }
2123 }
2224 }
2325 runner . initializeTests ( ) ;
You can’t perform that action at this time.
0 commit comments