File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
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,10 +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 ] ) {
100
- changedPackages [ targetPackage ] = 'dependency' ;
101
- }
99
+ const matchingSpecialPaths = Object . keys ( specialPaths ) . filter ( path =>
100
+ filename . startsWith ( path )
101
+ ) ;
102
+ for ( const targetPackage of specialPaths [ matchingSpecialPaths ] ) {
103
+ changedPackages [ targetPackage ] = 'dependency' ;
102
104
}
103
105
// Check for changed files inside package dirs.
104
106
const match = filename . match ( '^(packages(-exp)?/[a-zA-Z0-9-]+)/.*' ) ;
You can’t perform that action at this time.
0 commit comments