the-forest/client/node_modules/jest-pnp-resolver/getDefaultResolver.js
2024-09-17 20:35:18 -04:00

14 lines
304 B
JavaScript

let defaultResolver;
module.exports = () => {
if (!defaultResolver) {
try {
defaultResolver = require(`jest-resolve/build/defaultResolver`).default;
} catch (error) {
defaultResolver = require(`jest-resolve/build/default_resolver`).default;
}
}
return defaultResolver;
};