Skip to content

Commit aff1170

Browse files
include crash reports in test-results directory
1 parent 63780c6 commit aff1170

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.vscode-test.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
//===----------------------------------------------------------------------===//
1414
// @ts-check
1515
import { defineConfig } from "@vscode/test-cli";
16+
import { mkdir } from "fs/promises";
1617
import * as path from "path";
1718

1819
import * as packageJSON from "./package.json" with { type: "json" };
1920

20-
export default defineConfig(() => {
21+
export default defineConfig(async () => {
2122
const isCIBuild = process.env["CI"] === "1";
2223

2324
const dataDir = process.env["VSCODE_DATA_DIR"];
@@ -37,9 +38,13 @@ export default defineConfig(() => {
3738
// Keep this up to date with the timeout of a 'small' test in 'test/tags.ts'.
3839
const timeout = isDebugRun ? 0 : 2000;
3940

41+
const crashReporterDirectory = path.join(import.meta.dirname, "test-results", "crash-reports");
42+
await mkdir(crashReporterDirectory, { recursive: true });
43+
4044
const launchArgs = [
4145
"--disable-updates",
4246
"--disable-crash-reporter",
47+
`--crash-reporter-directory=${crashReporterDirectory}`,
4348
"--disable-workspace-trust",
4449
"--disable-telemetry",
4550
"--disable-gpu",

0 commit comments

Comments
 (0)