Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix broken tests

Fang-Pen Linc3fdb10b3e94
diff --git a/backend/src/services/certificate-profile/certificate-profile-service.test.ts b/backend/src/services/certificate-profile/certificate-profile-service.test.ts
index 1e31d5788a..3b75c10883 100644
--- a/backend/src/services/certificate-profile/certificate-profile-service.test.ts
+++ b/backend/src/services/certificate-profile/certificate-profile-service.test.ts
@@ -428,7 +428,13 @@ describe("CertificateProfileService", () => {
service.createProfile({
...mockActor,
projectId: "project-123",
- data: validProfileData
+ data: {
+ ...validProfileData,
+ enrollmentType: EnrollmentType.ACME,
+ acmeConfig: {},
+ apiConfig: undefined,
+ estConfig: undefined
+ }
})
).rejects.toThrowError(
new BadRequestError({