@bem/sdk.config — options.name
const config = require("@bem/sdk.config");
const mockfs = require('mock-fs');
const { stripIndent } = require('common-tags');
const bemConfig = config({name: 'app'});
mockfs({
'.apprc': stripIndent`
module.exports = {
root: true,
levels: {
'common.blocks': {},
'desktop.bundles': {}
},
modules: {
'bem-tools': {
plugins: {}
}
}
}`
});
const conf = await bemConfig.get();
conf;
no comments