@@ -185,7 +185,6 @@ async function testResolverQueriesResults(resolverFile, queriesReferenceFolder,
185
185
* Validates that an apollo zip contains the correct content.
186
186
*
187
187
* @param {string } outputFolderPath the test output folder path that contains the apollo zip file to validate
188
- * @param outputReferencePath the test output reference folder path that contains apollo files for content validation
189
188
* @param {object } testDbInfo object that contains info about the neptune db/graph used to generate the apollo zip file
190
189
* @param {string } testDbInfo.graphName neptune db/graph name
191
190
* @param {string } testDbInfo.neptuneType neptune-db or neptune-graph
@@ -195,7 +194,7 @@ async function testResolverQueriesResults(resolverFile, queriesReferenceFolder,
195
194
* @param {boolean } subgraph true if the apollo zip contents should be for a subgraph
196
195
* @returns {Promise<void> }
197
196
*/
198
- async function testApolloArtifacts ( outputFolderPath , outputReferencePath , testDbInfo , subgraph = false ) {
197
+ async function testApolloArtifacts ( outputFolderPath , testDbInfo , subgraph = false ) {
199
198
test ( 'Validate Apollo zip contents' , ( ) => {
200
199
const expectedFiles = [
201
200
'.env' ,
@@ -228,9 +227,8 @@ async function testApolloArtifacts(outputFolderPath, outputReferencePath, testDb
228
227
const actualEnvContent = fs . readFileSync ( path . join ( outputFolderPath , 'unzipped' , '.env' ) , 'utf8' ) ;
229
228
expect ( actualEnvContent ) . toEqual ( expectedEnvContent . join ( '\n' ) ) ;
230
229
231
- const expectedIndexFileContent = fs . readFileSync ( path . join ( outputReferencePath , 'index.mjs' ) , 'utf8' ) ;
232
- const actualIndexFileContent = fs . readFileSync ( path . join ( outputFolderPath , 'unzipped' , 'index.mjs' ) , 'utf8' ) ;
233
- expect ( actualIndexFileContent ) . toEqual ( expectedIndexFileContent ) ;
230
+ const actualIndexContent = fs . readFileSync ( path . join ( outputFolderPath , 'unzipped' , 'index.mjs' ) , 'utf8' ) ;
231
+ expect ( actualIndexContent ) . toContain ( 'https://specs.apollo.dev/federation/v2.0' ) ;
234
232
} ) ;
235
233
}
236
234
0 commit comments