Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: corepack enable
- run: pnpm i
- run: pnpm format --check
- run: pnpm run build
- run: pnpm typecheck
- uses: voidzero-dev/setup-vp@v1
- run: vp i
- run: vp check --no-lint
- run: vp run build
- run: vp run typecheck

test:
strategy:
Expand All @@ -36,9 +35,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- run: corepack enable
- run: pnpm i
- run: pnpm run build
- run: pnpm exec playwright install --with-deps
- run: pnpm run test -c vitest.ci.config.ts
- uses: voidzero-dev/setup-vp@v1
- run: vp i
- run: vp run build
- run: vp exec playwright install --with-deps
- run: vp run test -c vitest.ci.config.ts
10 changes: 0 additions & 10 deletions .oxfmtrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ When syncing upstream or considering filing issues, review this list. If a diver
- Iterate on aria snapshot utility feature

```sh
pnpm test test/aria.test.ts --browser.headless --update
vp run test test/aria.test.ts --browser.headless --update
```
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ All query methods follow the same rules described in the [Playwright documentati
- `ivya.queryAllByPlaceholder(matcher: string | RegExp, options?: { exact?: boolean }): Element[]`
- `ivya.queryAllByAltText(matcher: string | RegExp, options?: { exact?: boolean }): Element[]`

## Development

This project uses [Vite+](https://viteplus.dev/). Follow [their guide](https://viteplus.dev/guide/) to install `vp` cli. Try `vp` for interactive prompts.

```sh
# install dependencies and setup commit hooks
vp install

# ensure `vp run ...` to invoke package.json scripts
vp run dev
vp run build
vp run test
```

## See more

- [Locators guide in Playwright's documentation](https://playwright.dev/docs/locators#locator-operators)
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@
"./utils": "./dist/publicUtils.js"
},
"scripts": {
"dev": "tsdown --watch --sourcemap",
"build": "tsdown",
"prepare": "vp config",
"dev": "vp pack --watch --sourcemap",
"build": "vp pack",
"typecheck": "tsc -b",
"format": "oxfmt",
"test": "vitest"
},
"devDependencies": {
"@vitest/browser-playwright": "^4.1.0",
"oxfmt": "^0.40.0",
"playwright": "^1.58.2",
"tsdown": "^0.21.2",
"typescript": "^5.8.2",
"vite": "^8.0.0",
"vite-plus": "latest",
"vitest": "^4.1.0",
"yaml": "^2.8.2"
},
Expand Down
Loading
Loading