obsidian-testing-framework 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +12 -5
package/lib/index.js CHANGED
@@ -72,7 +72,9 @@ function generateVaultConfig(vault) {
72
72
  // @ts-ignore some error about a string type now having `undefined` as part of it's union
73
73
  export const test = base.extend({
74
74
  electronApp: [
75
- async ({ obsidian: { obsidianPath } }, run) => {
75
+ async ({ obsidian }, run) => {
76
+ console.log("obsidian", obsidian);
77
+ const { obsidianPath = undefined } = obsidian ?? {};
76
78
  const vault = inject("vault");
77
79
  process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = "true";
78
80
  console.log("asar located at:", getExe(obsidianPath));
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "obsidian-testing-framework",
3
3
  "packageManager": "yarn@4.5.1",
4
+ "type": "module",
4
5
  "dependencies": {
5
6
  "@codemirror/language": "https://github.com/lishid/cm-language",
6
7
  "@codemirror/state": "^6.0.1",
7
8
  "@codemirror/view": "^6.0.1",
8
- "@playwright/test": "^1.48.1",
9
+ "@playwright/test": "^1.58.2",
9
10
  "asar": "^3.2.0",
10
11
  "electron": "^33.0.2",
11
12
  "obsidian": "latest",
12
- "playwright": "^1.48.1",
13
+ "playwright": "^1.58.2",
13
14
  "tmp": "^0.2.3",
14
15
  "typescript": "^5.6.3",
15
16
  "xvfb-maybe": "^0.2.1"
@@ -18,8 +19,13 @@
18
19
  "./lib",
19
20
  "../../README.md"
20
21
  ],
22
+ "exports": {
23
+ "./fixture": "./lib/fixtures.js",
24
+ "./util": "./lib/util.js",
25
+ ".": "./lib/index.js"
26
+ },
21
27
  "readme": "",
22
- "version": "0.1.8",
28
+ "version": "0.1.9",
23
29
  "main": "./lib/index.js",
24
30
  "typings": "./lib/index.d.ts",
25
31
  "repository": {
@@ -29,11 +35,12 @@
29
35
  "scripts": {
30
36
  "build": "tsc",
31
37
  "lint": "tslint -c tslint.json src/**/*.ts",
32
- "prepublishOnly": "pwsh -command 'rm README.md; cp ../../README.md . && rimraf lib && npm run build'"
38
+ "prepublishOnly": "pwsh -command 'rm README.md; cp ../../README.md . && rimraf lib && npm run build'",
39
+ "prepare": "yarn run build"
33
40
  },
34
41
  "devDependencies": {
35
42
  "@types/tmp": "^0",
36
43
  "rimraf": "^6.0.1",
37
- "vitest": "^2.1.4"
44
+ "vitest": "^4.0.18"
38
45
  }
39
46
  }