0.0.1 • Published 8 months ago

@ebizbase/grpc-client-test v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

grpc-client-test

This project provides a utility for creating and testing gRPC clients in NestJS. It includes a class GrpcClientTest that helps in setting up a gRPC client proxy for testing purposes.

Features

  • Easily create gRPC client proxies for testing.
  • Integrates with NestJS testing utilities.
  • Supports custom gRPC options.

Usage

You can use the GrpcClientTest class to create a gRPC client proxy for testing. Here's an example:

import { GrpcClientTest } from './grpc-client-test';
import { ClientGrpcProxy } from '@nestjs/microservices';

const options = {
  package: 'your_package_name',
  protoPath: 'path/to/your/protofile.proto',
};

const client: ClientGrpcProxy = await GrpcClientTest.create(options);
const service = client.getService('GrpcService');
0.0.1

8 months ago