katoikia-app/web-ui/web-react/node_modules/jest-pnp-resolver/getDefaultResolver.js

14 lines
304 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
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;
};