I'm going to test typescript(inversify) code using jest. Below mentioned the code that use to test a controller method. describe('Test UserController',() =>{
I've got some strange problem here: I've setup file upload just like in the nest.js tutorials. On my machine (Windows 10) everything works fine but when I deplo
Is it possible to make a redirect from a Nest controller without the usage of the @Response object? For now I know that we can only do this via direct @Response
I have an array of dates in a post request body that I want to validate: { "meals": [...], "dates": [ "2022-03-06T11:00:00.000Z", "2022-
I am trying to create fcm API using nest js which I am using in a flutter. I am new to Nest js and I have implemented the code using this. There is no error in
I have an app where I define the API response schemas as plain javascript objects according to the open-api spec. Currently I am passing that to the ApiResponse
I've created a NestJs project with Fastify, and have created a middleware for it, but I can't figure out how to send a response to the client, similar to how we
I'm very new in microservices, I was a wonder to know that is there any way to call a moleculer action from nestjs gateway?
I am using NestJS, TypeORM, and MySQL to build a web application. I am using a .env file to pass in some environment variables for connecting to my local datab
I can't use the package "node-fetch@3". I just import it and my console will log the error: const node_fetch_1 = require("node-fetch"); ^ E
I want to use the RouterModule.register(arrayOfRoutes), but I need to build the arrayOfRoutes with a variable from the ConfigService. What is the proper way to
I am tryng to code a test for upload. But i am not understating how to properly use jest.mock('aws-sdk') export class S3Service { private readonly s3: S3;
Pretty new to GraphQL, I am facing an issue with the latest version of NestJS where I am currently trying to add a mutation to a resolver that doesn't show in t
I am currently doing unit test for the services in Nestjs using Jest, one of which is using the google Oauth service. My goal is to verify the token from google
I'm trying to upload files with dynamic keys, but nest.js needs to know key names. I tried this one: @UseInterceptors(FilesInterceptor('files')) async
I use NestJs + Typegoose. How to replace _id to id in NestJs + Typegoose? I didn't find a clear example. I've tried something but without any results. @modelOp
Using class-validator along with NestJS I want to validate that a user provides either propertyA or a propertyB but they don't need to provide both. Currently,
I have a simple NestJs Microservice application that is listening for messages from a Rabbitmq service. async function bootstrap() { dotenv.config(); // TO
all. Include details about your goal: I'm trying to mock repository in e2e test Describe expected and actual results: Request to server will not have access
here is my Dockerfile: FROM node AS builder WORKDIR /app COPY package*.json ./ COPY prisma ./prisma/ COPY tsconfig.build.json ./ COPY tsconfig.json ./ RUN n