Skip to content

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

fix regex error on CI

adilson26e688c800df
diff --git a/backend/src/services/external-migration/external-migration-fns/vault.test.ts b/backend/src/services/external-migration/external-migration-fns/vault.test.ts
index 3381742181..f350c9b95c 100644
--- a/backend/src/services/external-migration/external-migration-fns/vault.test.ts
+++ b/backend/src/services/external-migration/external-migration-fns/vault.test.ts
@@ -230,7 +230,7 @@ describe("assertVaultFolderImportSecretCount", () => {
expect(() => assertVaultFolderImportSecretCount(plan)).toThrowError(BadRequestError);
expect(() => assertVaultFolderImportSecretCount(plan)).toThrowError(
- new RegExp(`Cannot import 1025 secrets.*at most ${MAX_VAULT_FOLDER_IMPORT_SECRETS} secrets`)
+ `Cannot import 1025 secrets while preserving Vault structure. Import at most ${MAX_VAULT_FOLDER_IMPORT_SECRETS} secrets`
);
});
});