fix(ci): isolate mock.module tests per-file to prevent cross-contamination

This commit is contained in:
YeonGyu-Kim
2026-04-08 17:30:43 +09:00
parent 119c23342a
commit dc1546c613
+1 -7
View File
@@ -29,13 +29,7 @@ async function usesModuleMock(rootDirectory: string, testFile: string): Promise<
}
function toIsolatedTarget(testFile: string): string {
const pathSegments = testFile.split("/")
if (pathSegments.length <= 3) {
return testFile
}
return pathSegments.slice(0, -1).join("/")
return testFile
}
function isCoveredByTarget(testFile: string, isolatedTarget: string): boolean {