diff --git a/server/tests/integration/common/utils/validationUtils.test.ts b/server/tests/integration/common/utils/validationUtils.test.ts index 2845a7ee6..8db2f2cfa 100644 --- a/server/tests/integration/common/utils/validationUtils.test.ts +++ b/server/tests/integration/common/utils/validationUtils.test.ts @@ -1,8 +1,7 @@ import { isValidCFD } from "shared"; +import { telephoneConverter } from "shared/utils/frenchTelephoneNumber"; import { it, expect, describe } from "vitest"; -import { telephoneConverter } from "@/common/validation/utils/frenchTelephoneNumber"; - describe("Validation Utils", () => { describe("validation du CFD", () => { [ diff --git a/shared/models/parts/zodPrimitives.ts b/shared/models/parts/zodPrimitives.ts index 1cb3423c6..738d79352 100644 --- a/shared/models/parts/zodPrimitives.ts +++ b/shared/models/parts/zodPrimitives.ts @@ -16,7 +16,7 @@ import { PHONE_REGEX_PATTERN, } from "shared"; -import { telephoneConverter } from "../../../server/src/common/validation/utils/frenchTelephoneNumber"; +import { telephoneConverter } from "../../utils/frenchTelephoneNumber"; extendZodWithOpenApi(z); diff --git a/server/src/common/validation/utils/frenchTelephoneNumber.ts b/shared/utils/frenchTelephoneNumber.ts similarity index 100% rename from server/src/common/validation/utils/frenchTelephoneNumber.ts rename to shared/utils/frenchTelephoneNumber.ts