How to use @lwc/jest-resolver - 1 common examples

To help you get started, we’ve selected a few @lwc/jest-resolver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github salesforce / sfdx-lwc-jest / src / resolver.js View on Github external
module.exports = function (modulePath, options) {
    if (modulePath === 'lwc') {
        return require.resolve('@lwc/engine');
    }
    return  getModule(modulePath, options) || lwcResolver.apply(null, arguments);
};

@lwc/jest-resolver

Jest resolver to resolve LWC specific packages

MIT
Latest version published 1 month ago

Package Health Score

84 / 100
Full package analysis

Popular @lwc/jest-resolver functions