diff --git a/index.api.ts b/index.api.ts index 3760793..56bc8df 100644 --- a/index.api.ts +++ b/index.api.ts @@ -437,12 +437,6 @@ function normalizeMockFilePath(filePath: string): string { if (path.isAbsolute(relative)) { throw new Error("filePath must be a relative path"); } - const innerPath = relative.replace(/^mock\//, ""); - if (!/^[A-Za-z0-9/.]+$/.test(innerPath)) { - throw new Error( - "filePath only allows English letters, numbers, '/', and '.'", - ); - } return relative; }