Skip to content

Commit

Permalink
fix(backend): fix unit test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Jan 28, 2025
1 parent 4e993ae commit dfe813d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/util/phone/phoneUtils.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Telephone utils", () => {

it("getPhoneString shoud return string with countryCode and numero", () => {
expect(getPhoneString({ countryCode: "fr", numero: "0622062206" })).toEqual(
"0622062206"
"06 22 06 22 06"
);
});
});
5 changes: 5 additions & 0 deletions packages/backend/src/util/test/AppTestHelper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ async function bootstrapTestApp(
context.app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
stopAtFirstError: true,
transform: true,
transformOptions: {
enableImplicitConversion: false,
},
})
);
await context.app.init();
Expand Down

0 comments on commit dfe813d

Please sign in to comment.