Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+11
-2
@@ -5,7 +5,8 @@ import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const sourceRoot = dirname(fileURLToPath(import.meta.url));
|
||||
const forbiddenImportPattern = /(?:from\s+["']|import\s*\(\s*["'])(~\/|app\/|@hivegrid\/(?:db|config)(?:\/|$)|react(?:\/|$)|react-router(?:\/|$)|@prisma\/client(?:\/|$)|\.prisma\/client(?:\/|$)|prisma(?:\/|$))/;
|
||||
const forbiddenImportPattern =
|
||||
/(?:from\s+["']|import\s*\(\s*["'])(~\/|app\/|@hivegrid\/(?:db|config)(?:\/|$)|react(?:\/|$)|react-router(?:\/|$)|@prisma\/client(?:\/|$)|\.prisma\/client(?:\/|$)|prisma(?:\/|$))/;
|
||||
const diagnosticTemplatePattern = /(?:message\s*[:=]|new\s+\w*Error\s*\()[^;\n]*/g;
|
||||
const unsafeDiagnosticPattern = /tenant|customer|user|api[-_\s]?key|subscription[-_\s]?id|secret|sk_[a-z0-9]/i;
|
||||
|
||||
@@ -22,7 +23,7 @@ async function collectSourceFiles(directory: string): Promise<readonly string[]>
|
||||
const isSourceFile = extname(entryPath) === ".ts" && !entryPath.endsWith(".test.ts");
|
||||
|
||||
return isSourceFile ? [entryPath] : [];
|
||||
}),
|
||||
})
|
||||
);
|
||||
|
||||
return files.flat();
|
||||
@@ -38,11 +39,19 @@ describe("entitlements package boundary", () => {
|
||||
|
||||
expect(sourceFiles.map(toPackageRelativePath).sort()).toEqual([
|
||||
"blueprints.ts",
|
||||
"commercial-catalog.ts",
|
||||
"customer-portal-commercial.ts",
|
||||
"email-marketing-commercial.ts",
|
||||
"evaluate.ts",
|
||||
"features.ts",
|
||||
"index.ts",
|
||||
"plans.ts",
|
||||
"product-access.ts",
|
||||
"registration-plan-advisor.ts",
|
||||
"seat-packages.ts",
|
||||
"seat-usage.ts",
|
||||
"seats.ts",
|
||||
"storage-capacity.ts",
|
||||
]);
|
||||
|
||||
for (const sourceFile of sourceFiles) {
|
||||
|
||||
Reference in new issue
Block a user