e2e tests for engine (#322)

This commit is contained in:
Will Chen
2025-06-03 16:11:16 -07:00
committed by GitHub
parent 7235eab227
commit fc1ebe9e8a
10 changed files with 956 additions and 165 deletions

View File

@@ -339,6 +339,13 @@ export async function extractCodebase(appPath: string): Promise<{
const endTime = Date.now();
logger.log("extractCodebase: time taken", endTime - startTime);
if (process.env.E2E_TEST_BUILD) {
// Why? For some reason, file ordering is not stable on Windows.
// This is a workaround to ensure stable ordering, although
// ideally we'd like to sort it by modification time which is
// important for cache-ability.
filesArray.sort((a, b) => a.path.localeCompare(b.path));
}
return {
formattedOutput,
files: filesArray,