You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, there is a bug envolving dependencies when Jest is used with requireDir, check this thread, this comment in specific, recomends switching requireDir package for require-directory package.
The module require-directory works just fine for me along side Jest.
For me, what would be writed as: const routesDefinition = requireDir("./routes");
was replaced by: const routesDefinition = requireDirectory(module, "./routes");
https://github.com/aseemk/requireDir/blob/master/index.js#L50
The text was updated successfully, but these errors were encountered: