File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414// @ts -check
1515import { defineConfig } from "@vscode/test-cli" ;
16+ import { mkdir } from "fs/promises" ;
1617import * as path from "path" ;
1718
1819import * 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" ,
You can’t perform that action at this time.
0 commit comments