One line fix accounting for mocking with Jest causing the module.parent to be undefined.