Skip to content

Commit c8faded

Browse files
committed
create dir if necessary (for testing)
Signed-off-by: Sebastian Malton <[email protected]>
1 parent 1c8aa2b commit c8faded

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration/helpers/utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AppConstructorOptions, Application } from "spectron";
22
import * as util from "util";
33
import { exec, spawnSync } from "child_process";
4-
import fse, { writeFile } from "fs-extra";
4+
import fse, { mkdirp, writeFile } from "fs-extra";
55
import path from "path";
66
import os from "os";
77
import { delay } from "../../src/common/utils";
@@ -85,6 +85,7 @@ export async function appStart() {
8585
"Categories=Network;"
8686
].join("\n");
8787

88+
await mkdirp(path.join(os.homedir(), ".local/share/applications/"));
8889
await writeFile(path.join(os.homedir(), ".local/share/applications/lens-testing.desktop"), testingDesktop);
8990

9091
const { status } = spawnSync("xdg-settings set default-url-scheme-handler lens lens-testing.desktop", { shell: true });

0 commit comments

Comments
 (0)