This commit is contained in:
parent c9337120b7
commit b515ddfafe
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
7 changed files with 41 additions and 37 deletions

BIN
.yarn/install-state.gz vendored

Binary file not shown.

@ -40,7 +40,7 @@ const obsidianTestFixtures: Fixtures<
const page = await electronApp.firstWindow(); const page = await electronApp.firstWindow();
await run(page); await run(page);
}, },
{ auto: true }, {}
], ],
app: [async ({ page }, run) => { app: [async ({ page }, run) => {
const app: App = await page.evaluate("window.app"); const app: App = await page.evaluate("window.app");

@ -1,14 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES6", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "bundler",
"lib": [ "lib": [
"es2015", "es2015",
"DOM", "DOM",
"ES2018" "ESNext.Disposable"
], ],
"outDir": "packages/obsidian-testing-framework/lib", "outDir": "lib",
"baseUrl": ".", "baseUrl": ".",
"strict": true, "strict": true,
"alwaysStrict": true, "alwaysStrict": true,

@ -1,5 +1,5 @@
import { expect } from '@playwright/test'; import { expect } from '@playwright/test';
import {test} from "../../lib.not" import {test} from "obsidian-testing-framework"
test('something', async ({ page }) => { test('something', async ({ page }) => {
expect(page).toHaveURL(/obsidian\.md/i); expect(page).toHaveURL(/obsidian\.md/i);
}); });

@ -13,7 +13,7 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"obsidian-testing-framework": "workspace:*" "obsidian-testing-framework": "workspace:^"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.48.1", "@playwright/test": "^1.48.1",
@ -23,8 +23,10 @@
"builtin-modules": "3.3.0", "builtin-modules": "3.3.0",
"esbuild": "0.17.3", "esbuild": "0.17.3",
"obsidian": "latest", "obsidian": "latest",
"playwright": "^1.48.1",
"tslib": "2.4.0", "tslib": "2.4.0",
"typescript": "4.7.4" "typescript": "4.7.4",
"vitest": "^2.1.3"
}, },
"type": "module" "type": "module"
} }

@ -13,7 +13,7 @@ import {ObsidianTestFixtures} from "obsidian-testing-framework/fixture";
* See https://playwright.dev/docs/test-configuration. * See https://playwright.dev/docs/test-configuration.
*/ */
export default defineConfig<ObsidianTestFixtures>({ export default defineConfig<ObsidianTestFixtures>({
testDir: './tests', testDir: './e2e',
/* Run tests in files in parallel */ /* Run tests in files in parallel */
fullyParallel: true, fullyParallel: true,

@ -1830,9 +1830,11 @@ __metadata:
builtin-modules: "npm:3.3.0" builtin-modules: "npm:3.3.0"
esbuild: "npm:0.17.3" esbuild: "npm:0.17.3"
obsidian: "npm:latest" obsidian: "npm:latest"
obsidian-testing-framework: "workspace:*" obsidian-testing-framework: "workspace:^"
playwright: "npm:^1.48.1"
tslib: "npm:2.4.0" tslib: "npm:2.4.0"
typescript: "npm:4.7.4" typescript: "npm:4.7.4"
vitest: "npm:^2.1.3"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -1842,7 +1844,7 @@ __metadata:
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"obsidian-testing-framework@workspace:*, obsidian-testing-framework@workspace:packages/obsidian-testing-framework": "obsidian-testing-framework@workspace:^, obsidian-testing-framework@workspace:packages/obsidian-testing-framework":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "obsidian-testing-framework@workspace:packages/obsidian-testing-framework" resolution: "obsidian-testing-framework@workspace:packages/obsidian-testing-framework"
dependencies: dependencies: