Skip to content

Commit

Permalink
Set ValidationPipe transform to true to use DTO in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
curtwl committed Jun 16, 2024
1 parent 93d246e commit 132bb14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sprints.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("Sprints Controller (e2e)", () => {
await seed();
app = moduleFixture.createNestApplication();
prisma = moduleFixture.get<PrismaService>(PrismaService);
app.useGlobalPipes(new ValidationPipe());
app.useGlobalPipes(new ValidationPipe({ transform: true }));
app.use(cookieParser());
await app.init();
});
Expand Down Expand Up @@ -1223,7 +1223,7 @@ describe("Sprints Controller (e2e)", () => {
userId: true,
},
});
const val = { user: user?.userId };
const val = user?.userId;

return request(app.getHttpServer())
.get(sprintCheckinUrl)
Expand Down

0 comments on commit 132bb14

Please sign in to comment.