import { JsonRpcProvider } from "ethers/providers" ; import { Node } from "../../src/node" ; import { MemoryStoreService } from "../services/memory-store-service" ; import mockMessagingService from "../services/mock-messaging-service" ; describe ( "Node" , ( ) => { it ( "is defined" , ( ) => { expect ( Node ) . toBeDefined ( ) ; } ) ; it ( "can be created" , async ( ) => { const node = await Node . create ( mockMessagingService , new MemoryStoreService ( ) , global [ "networkContext" ] , { STORE_KEY_PREFIX : "./node.spec.ts-test-file" } , new JsonRpcProvider ( global [ "ganacheURL" ] ) ) ; expect ( node ) . toBeDefined ( ) ; } ) ; } ) ;