File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,12 @@ let packageJsonConfig: Record<string, string> = {};
4747 */
4848export function findPackageJson ( directory ?: string ) : Record < string , string > {
4949 for ( const found of finder ( directory || process . cwd ( ) ) as CustomFinderIterator ) {
50- log ( `findPackageJson: Found package.json"` ) ;
50+ // This is an hidden property, using this because an "for..of" loop dosnt return the "filename" value that is besides the "done" and "value" value
51+ const filename = found . __path as string ;
52+ log ( `findPackageJson: Found package.json at "${ filename } "` ) ;
5153
5254 if ( Object . keys ( found ?. config ?. mongodbMemoryServer ?? { } ) . length > 0 ) {
53- log ( `findPackageJson: Found package with non-empty config field"` ) ;
55+ log ( `findPackageJson: Found package with non-empty config field at " ${ filename } "` ) ;
5456
5557 // the optional chaining is needed, because typescript wont accept an "isNullOrUndefined" in the if with "&& Object.keys"
5658 packageJsonConfig = found ?. config ?. mongodbMemoryServer ;
You can’t perform that action at this time.
0 commit comments