0.0.8 • Published 2 years ago

@tester234/wallets-testing-nodes v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago