fix: destructuring of potentially undefined object
Some checks failed
Playwright Tests / test (push) Failing after 43s
Some checks failed
Playwright Tests / test (push) Failing after 43s
This commit is contained in:
parent
e150100acc
commit
ae13f65b97
@ -94,7 +94,9 @@ function generateVaultConfig(vault: string) {
|
||||
// @ts-ignore some error about a string type now having `undefined` as part of it's union
|
||||
export const test = base.extend<ObsidianTestFixtures>({
|
||||
electronApp: [
|
||||
async ({obsidian: {obsidianPath}}, run) => {
|
||||
async ({obsidian}, run) => {
|
||||
console.log("obsidian", obsidian);
|
||||
const {obsidianPath = undefined} = obsidian ?? {};
|
||||
const vault = <string> inject("vault")
|
||||
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = "true";
|
||||
console.log("asar located at:", getExe(obsidianPath));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user