@bem/sdk.config — moduleSync()
const config = require("@bem/sdk.config")();
const mockfs = require('mock-fs');
const { stripIndent } = require('common-tags');
mockfs({
'.bemrc': stripIndent`
module.exports = {
'root': true,
'modules': {
'bem-tools': {
'sheme': 'nested'
},
'other-module': {
'sheme': 'mixed'
}
}
}`
});
const bemToolsConf = config.moduleSync('bem-tools');
bemToolsConf;
no comments