fix(ci): stabilize post-cutover checks
This commit is contained in:
1 parent
6ae0aef6c0
commit
cdfae0b967
2 files changed
+27
-21
No files matched your search
@@ -77,19 +77,19 @@ describe("admin theme source audit", () => {
|
||||
});
|
||||
|
||||
it("keeps retained Studio workflows on semantic status and overlay colors", () => {
|
||||
const violations = sourceFiles("src/components/admin/studio").flatMap(
|
||||
(file) => {
|
||||
const source = readFileSync(file, "utf8");
|
||||
const risky =
|
||||
source.match(/rgba?\([^)]*\)|(?:bg-black|text-white)(?:\/\d+)?/g) ??
|
||||
[];
|
||||
return risky.length
|
||||
? [
|
||||
`${relative(process.cwd(), file).replaceAll("\\", "/")}: ${[...new Set(risky)].join(", ")}`,
|
||||
]
|
||||
: [];
|
||||
},
|
||||
);
|
||||
const studioFiles = [
|
||||
"src/features/housekeeping/domains/hotel/pages/studio.tsx",
|
||||
];
|
||||
const violations = studioFiles.flatMap((file) => {
|
||||
const source = readFileSync(file, "utf8");
|
||||
const risky =
|
||||
source.match(/rgba?\([^)]*\)|(?:bg-black|text-white)(?:\/\d+)?/g) ?? [];
|
||||
return risky.length
|
||||
? [
|
||||
`${relative(process.cwd(), file).replaceAll("\\", "/")}: ${[...new Set(risky)].join(", ")}`,
|
||||
]
|
||||
: [];
|
||||
});
|
||||
expect(violations).toEqual([]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user