File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ const specialPaths = {
70
70
'packages/database'
71
71
] ,
72
72
'scripts/emulator-testing/firestore-test-runner.ts' : [ 'packages/firestore' ] ,
73
- 'scripts/emulator-testing/database-test-runner.ts' : [ 'packages/database' ]
73
+ 'scripts/emulator-testing/database-test-runner.ts' : [ 'packages/database' ] ,
74
+ 'packages/firestore' : [ 'integration/firestore' ]
74
75
} ;
75
76
76
77
/**
@@ -95,8 +96,11 @@ async function getChangedPackages() {
95
96
return { testAll : true } ;
96
97
}
97
98
// Files outside a package dir that should trigger its tests.
98
- if ( specialPaths [ filename ] ) {
99
- for ( const targetPackage of specialPaths [ filename ] ) {
99
+ const matchingSpecialPaths = Object . keys ( specialPaths ) . filter ( path =>
100
+ filename . startsWith ( path )
101
+ ) ;
102
+ for ( const matchingSpecialPath of matchingSpecialPaths ) {
103
+ for ( const targetPackage of specialPaths [ matchingSpecialPath ] ) {
100
104
changedPackages [ targetPackage ] = 'dependency' ;
101
105
}
102
106
}
You can’t perform that action at this time.
0 commit comments