@bem/sdk.config — options.pathToConfig

node v10.16.0
version: master
endpointsharetweet
const config = require('@bem/sdk.config'); const mockfs = require('mock-fs'); const { stripIndent } = require('common-tags'); const bemConfig = config({pathToConfig: 'src/configs/.app-rc.json'}); mockfs({ 'src': { 'configs': { '.app-rc.json': stripIndent` module.exports = { 'root': true, 'levels': { 'common.blocks': {}, 'desktop.blocks': {} }, 'modules': { 'bem-tools': { 'plugins': {} } } }` } } }); const conf = await bemConfig.get(); conf;
Loading…

no comments

    sign in to comment