0.0.8 • Published 9 months ago

@tester234/wallets-testing-nodes v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Node Module

Module for using local ganache node with playwright helpers

Install

yarn add @lidofinance/wallets-testing-nodes

Usage

Import this module and provide rpcUrl parameter via factory

@Module({
    imports: [
        NodeModule.forRoot(
            (configService: ConfigService) => {
                return { rpcUrl: configService.get('RPC_URL') };
            },
            [ConfigService],
            [ConfigModule],
        ),
    ],
})
export class MyModule {}

// Usage
export class MyService {
  constructor(private ethereumNodeService: EthereumNodeService) {}

  async myMethod() {
     await this.ethereumNodeService.startNode();
     const state = await this.ethereumNodeService.state;
     expect(state).toBeDefined()
     await this.ethereumNodeService.stopNode();
  }
}
0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago