Skip to content

Commit

Permalink
I was testing the wrong thing the whole time
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Mar 15, 2024
1 parent 980d5bd commit e3422e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ export async function getTscRepoResult(
return { status: "Package install failed" };
}

const relativeMonorepoPackages = monorepoPackages.map(p => path.relative(baseRepoDir, p));

const isUserTestRepo = !repo.url;

const buildStart = performance.now();
Expand All @@ -525,7 +527,8 @@ export async function getTscRepoResult(
{
await using overlay = await downloadDir.createOverlay();
const repoDir = path.join(overlay.path, repo.name);
oldErrors = await ge.buildAndGetErrors(repoDir, monorepoPackages, isUserTestRepo, oldTscPath, executionTimeout, /*skipLibCheck*/ true);
const overlayMonorepoPackages = relativeMonorepoPackages.map(p => path.join(overlay.path, p));
oldErrors = await ge.buildAndGetErrors(repoDir, overlayMonorepoPackages, isUserTestRepo, oldTscPath, executionTimeout, /*skipLibCheck*/ true);
}

if (oldErrors.hasConfigFailure) {
Expand Down Expand Up @@ -570,7 +573,8 @@ export async function getTscRepoResult(
{
await using overlay = await downloadDir.createOverlay();
const repoDir = path.join(overlay.path, repo.name);
newErrors = await ge.buildAndGetErrors(repoDir, monorepoPackages, isUserTestRepo, newTscPath, executionTimeout, /*skipLibCheck*/ true);
const overlayMonorepoPackages = relativeMonorepoPackages.map(p => path.join(overlay.path, p));
newErrors = await ge.buildAndGetErrors(repoDir, overlayMonorepoPackages, isUserTestRepo, newTscPath, executionTimeout, /*skipLibCheck*/ true);
}

if (newErrors.hasConfigFailure) {
Expand Down

0 comments on commit e3422e9

Please sign in to comment.