from console I get
MongoDB Enterprise mflix-shard-0:PRIMARY> db.comments.aggregate(pipeline, readConcern).pretty()
{ “_id” : “roger_ashton-griffiths@gameofthron.es”, “count” : 909 }
{ “_id” : "bradley_brooks@fakegmail.com", “count” : 880 }
{ “_id” : "megan_richards@fakegmail.com", “count” : 880 }
{ “_id” : “nathalie_emmanuel@gameofthron.es”, “count” : 874 }
{ “_id” : “paul_kaye@gameofthron.es”, “count” : 870 }
{ “_id” : “gemma_whelan@gameofthron.es”, “count” : 868 }
{ “_id” : "john_rice@fakegmail.com", “count” : 867 }
{ “_id” : "blake_sellers@fakegmail.com", “count” : 867 }
{ “_id” : “ben_hawkey@gameofthron.es”, “count” : 867 }
{ “_id” : “aidan_gillen@gameofthron.es”, “count” : 866 }
{ “_id” : “dean-charles_chapman@gameofthron.es”, “count” : 863 }
{ “_id” : "robert_jordan@fakegmail.com", “count” : 861 }
{ “_id” : "lori_blankenship@fakegmail.com", “count” : 860 }
{ “_id” : "edward_barrett@fakegmail.com", “count” : 859 }
{ “_id” : “iain_glen@gameofthron.es”, “count” : 859 }
{ “_id” : "kathryn_sosa@fakegmail.com", “count” : 859 }
{ “_id” : “jonathan_pryce@gameofthron.es”, “count” : 856 }
{ “_id” : “jason_momoa@gameofthron.es”, “count” : 856 }
{ “_id” : “anton_lesser@gameofthron.es”, “count” : 855 }
{ “_id” : “ian_beattie@gameofthron.es”, “count” : 853 }
but the test hangs as follows:
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren’t stopped in your tests. Consider running Jest with --detectOpenHandles
to troubleshoot this issue.