How to use the @nestjs/core/adapters/express-adapter.ExpressAdapter function in @nestjs/core

To help you get started, weโ€™ve selected a few @nestjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nestjs / nest / src / testing / testing-module.ts View on Github external
private applyExpressAdapter(httpAdapter: HttpServer): HttpServer {
    const isAdapter = !!httpAdapter.getHttpServer;
    if (isAdapter) {
      return httpAdapter;
    }
    return new ExpressAdapter(httpAdapter);
  }
}
github nestjs / nest / lib / testing / testing-module.js View on Github external
applyExpressAdapter(httpAdapter) {
        const isAdapter = !!httpAdapter.getHttpServer;
        if (isAdapter) {
            return httpAdapter;
        }
        return new express_adapter_1.ExpressAdapter(httpAdapter);
    }
}
github nestjs / nest / bundle / testing / testing-module.js View on Github external
applyExpressAdapter(httpAdapter) {
        const isAdapter = httpAdapter.getHttpServer;
        if (isAdapter) {
            return httpAdapter;
        }
        return new express_adapter_1.ExpressAdapter(httpAdapter);
    }
    applyLogger(options) {
github vellengs / nestx-server / dist / testing / testing-module.js View on Github external
applyExpressAdapter(httpAdapter) {
        const isAdapter = !!httpAdapter.getHttpServer;
        if (isAdapter) {
            return httpAdapter;
        }
        return new express_adapter_1.ExpressAdapter(httpAdapter);
    }
}