import { MockCas } from '@sidetree/cas' ; import { MockLedger } from '@sidetree/ledger' ; import sidetreeTestNodeCoreVersions from './configs/sidetree-test-node-core-versions.json' ; import Core from './Core' ; import { ConsoleLogger } from '@sidetree/common' ; export const getTestNodeIntance = async ( sideTreeNodeCoreConfig ) => { const cas = new MockCas ( ) ; await cas . initialize ( ) ; const ledger = new MockLedger ( ) ; const sidetreeNodeInstance = new Core ( sideTreeNodeCoreConfig as any , sidetreeTestNodeCoreVersions as any , cas , ledger ) ; await sidetreeNodeInstance . initialize ( new ConsoleLogger ( ) ) ; return sidetreeNodeInstance ; } ;