fix: destructuring of potentially undefined object
Some checks failed
Playwright Tests / test (push) Failing after 43s

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-02-11 16:20:34 -05:00
parent e150100acc
commit ae13f65b97
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -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));