Skip to content

Commit ac3d3d2

Browse files
committed
Always include logs in the test outputs even when tests pass
1 parent adddb78 commit ac3d3d2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tasks/testHelpers.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,12 @@ export async function runJestIntegrationTest(
125125
}
126126

127127
return result;
128-
} catch (err) {
129-
// If we hit an error, copy the logs VSCode produced to a directory that CI can find.
128+
} finally {
129+
// Copy the logs VSCode produced to a directory that CI can find.
130130
const vscodeLogs = path.join(userDataDir, 'logs');
131131
const logOutputPath = path.join(outPath, 'logs', logName);
132132
console.log(`Copying logs from ${vscodeLogs} to ${logOutputPath}`);
133133
fs.cpSync(vscodeLogs, logOutputPath, { recursive: true, force: true });
134-
135-
throw err;
136134
}
137135
}
138136

0 commit comments

Comments
 (0)