obsidian-testing-framework 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/internal-util.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export const test = base.extend({
|
|
|
14
14
|
const vaultHash = randomBytes(8).toString("hex").toLocaleLowerCase();
|
|
15
15
|
await run(vaultHash);
|
|
16
16
|
},
|
|
17
|
-
{ auto: true },
|
|
17
|
+
{ auto: true, scope: "worker" },
|
|
18
18
|
],
|
|
19
19
|
electronApp: [
|
|
20
20
|
async ({ ___vaultId: vaultId }, run) => {
|
package/lib/internal-util.js
CHANGED
|
@@ -72,7 +72,7 @@ export async function generateVaultConfig(vault, vaultHash, concurrent, vaultPoo
|
|
|
72
72
|
});
|
|
73
73
|
try {
|
|
74
74
|
const json = JSON.parse((await readFile(obsidianConfigFile)).toString());
|
|
75
|
-
const hasVault = Object.values(json.vaults).some((a) => a.path === vault);
|
|
75
|
+
const hasVault = Object.values(json.vaults).some((a) => a.path === vault) && !concurrent;
|
|
76
76
|
if (concurrent === "symlink") {
|
|
77
77
|
await symlinkDir(vault, path.join(vaultPoolDir, vaultHash));
|
|
78
78
|
}
|
|
@@ -90,6 +90,7 @@ export async function generateVaultConfig(vault, vaultHash, concurrent, vaultPoo
|
|
|
90
90
|
}
|
|
91
91
|
catch (err) {
|
|
92
92
|
console.error("error generating vault config", err);
|
|
93
|
+
throw err;
|
|
93
94
|
}
|
|
94
95
|
finally {
|
|
95
96
|
await releaser();
|