diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 3321a9c..6744a84 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -28,7 +28,7 @@ jobs: - name: compile and test! run: | export XDG_CONFIG_HOME=$HOME/.config - yarn workspace obsidian-testing-library run tsc + yarn workspace obsidian-testing-framework run tsc yarn workspace obsidian-sample-plugin run test - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 86d9a80..b566dd4 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/package.json b/package.json index eaa37ad..dd020ad 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "obsidian-testing-library-parent", + "name": "obsidian-testing-framework-parent", "private": true, "packageManager": "yarn@4.5.1", "workspaces": [ diff --git a/packages/obsidian-testing-framework/.npmignore b/packages/obsidian-testing-framework/.npmignore deleted file mode 100644 index 38e918b..0000000 --- a/packages/obsidian-testing-framework/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -tsconfig.json -src/**/* -typings/**/* diff --git a/packages/obsidian-testing-framework/package.json b/packages/obsidian-testing-framework/package.json index 948a89d..528b2e1 100644 --- a/packages/obsidian-testing-framework/package.json +++ b/packages/obsidian-testing-framework/package.json @@ -1,5 +1,5 @@ { - "name": "obsidian-testing-library", + "name": "obsidian-testing-framework", "packageManager": "yarn@4.5.1", "dependencies": { "@codemirror/language": "https://github.com/lishid/cm-language", @@ -39,7 +39,7 @@ "scripts": { "build": "tsc", "lint": "tslint -c tslint.json src/**/*.ts", - "prepublish": "rm README.md && cp ../../README.md . && rimraf lib && yarn build" + "prepublishOnly": "rm README.md && cp ../../README.md . && rimraf lib && npm run build" }, "devDependencies": { "@types/tmp": "^0", diff --git a/packages/test-project/e2e/example.spec.ts b/packages/test-project/e2e/example.spec.ts index 53733e0..25890d8 100644 --- a/packages/test-project/e2e/example.spec.ts +++ b/packages/test-project/e2e/example.spec.ts @@ -1,7 +1,7 @@ import { expect } from '@playwright/test'; -import {test} from "obsidian-testing-library" +import {test} from "obsidian-testing-framework" import {TFile} from "obsidian"; -import {assertLineEquals, doWithApp, readFile} from "obsidian-testing-library/utils"; +import {assertLineEquals, doWithApp, readFile} from "obsidian-testing-framework/utils"; test('something', async ({ page }) => { console.log(page.url()); expect(/obsidian\.md/i.test(page.url())).toBeTruthy() diff --git a/packages/test-project/package.json b/packages/test-project/package.json index eca4df6..4bf5bf6 100644 --- a/packages/test-project/package.json +++ b/packages/test-project/package.json @@ -14,7 +14,7 @@ "author": "", "license": "MIT", "dependencies": { - "obsidian-testing-library": "workspace:^" + "obsidian-testing-framework": "workspace:^" }, "devDependencies": { "@playwright/test": "^1.48.1", diff --git a/packages/test-project/playwright.config.ts b/packages/test-project/playwright.config.ts index d8be950..0c223fa 100644 --- a/packages/test-project/playwright.config.ts +++ b/packages/test-project/playwright.config.ts @@ -1,5 +1,5 @@ import { defineConfig, devices } from '@playwright/test'; -import {ObsidianTestFixtures} from "obsidian-testing-library/fixture"; +import {ObsidianTestFixtures} from "obsidian-testing-framework/fixture"; import os from "os" import path from 'path'; diff --git a/yarn.lock b/yarn.lock index 48d7852..95249e0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2487,7 +2487,7 @@ __metadata: builtin-modules: "npm:3.3.0" esbuild: "npm:0.17.3" obsidian: "npm:latest" - obsidian-testing-library: "workspace:^" + obsidian-testing-framework: "workspace:^" playwright: "npm:^1.48.1" tslib: "npm:2.4.0" typescript: "npm:4.7.4" @@ -2496,15 +2496,15 @@ __metadata: languageName: unknown linkType: soft -"obsidian-testing-library-parent@workspace:.": +"obsidian-testing-framework-parent@workspace:.": version: 0.0.0-use.local - resolution: "obsidian-testing-library-parent@workspace:." + resolution: "obsidian-testing-framework-parent@workspace:." languageName: unknown linkType: soft -"obsidian-testing-library@workspace:^, obsidian-testing-library@workspace:packages/obsidian-testing-framework": +"obsidian-testing-framework@workspace:^, obsidian-testing-framework@workspace:packages/obsidian-testing-framework": version: 0.0.0-use.local - resolution: "obsidian-testing-library@workspace:packages/obsidian-testing-framework" + resolution: "obsidian-testing-framework@workspace:packages/obsidian-testing-framework" dependencies: "@codemirror/language": "https://github.com/lishid/cm-language" "@codemirror/state": "npm:^6.0.1"