UNPKG

@magento/pwa-buildpack

Version:

Build/Layout optimization tooling and Peregrine framework adapters for the Magento PWA

15 lines (12 loc) 455 B
/** * Replicates the Jest configuration which mocks all CSS modules. Since most * testing scenarios don't render or paint the components, loading real CSS * wastes resources. * * Use for CSS modules when testing React components built by Webpack, * specifically in a target-testing scenario. */ function identityObjProxyLoader() { return 'exports = module.exports = require("identity-obj-proxy");'; } module.exports = identityObjProxyLoader;