npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-polteq-mobilewright-ts

v1.0.12

Published

Scaffold a Polteq Mobilewright (mobile end-to-end) TypeScript test project.

Readme

create-polteq-mobilewright-ts

Scaffolds the Polteq Mobilewright TypeScript training course: two days of hands-on exercises for writing mobile end-to-end tests with Mobilewright (Playwright-like API) against the Practice Software Testing demo app.

Installation

No install step is needed — npm init fetches and runs the latest published version (create-polteq-mobilewright-ts) on demand:

npm init polteq-mobilewright-ts@latest my-project

If you'd rather install the CLI explicitly first, npx works the same way:

npx create-polteq-mobilewright-ts@latest my-project

Usage

npm init polteq-mobilewright-ts@latest my-project
cd my-project
npm install
npx mobilewright doctor
npx mobilewright test tests/example.spec.ts

Or scaffold into the current directory:

mkdir my-project && cd my-project
npm init polteq-mobilewright-ts@latest .

The target directory must be empty (or not yet exist). You'll be prompted for a project name, used as the name field in the generated package.json.

npx mobilewright doctor checks that your Android SDK / emulator (or device) setup is ready before running tests.

What gets created

The full two-day Polteq Mobilewright training course — exercises, shared helpers, and the WebView playground addendum — exactly as it exists in the source training repo, minus the mobilewright packages themselves (attendees add those during Module 3):

my-project/
├── .gitignore
├── LICENSE
├── README.md                 # course README: prerequisites, setup, repository layout
├── mobilewright.config.ts    # platform, testDir, bundleId, reporter
├── exercises/                # day1/ and day2/ course modules — see exercises/README.md for the index
├── support/
│   ├── account.ts            # registers a fresh demo account via the practicesoftwaretesting.com API
│   └── navigation.ts         # openDrawer helper, tolerant of a session left over from a prior test
├── tests/
│   └── example.spec.ts       # Module 3/4's starting smoke test — left as-is throughout the course
├── playground/
│   ├── playground.apk        # WebView-only app used by Module 10's WebView addendum (Android)
│   └── playground.zip        # same, iOS Simulator build
├── mobilewright-training-setup-guide.docx
├── package.json
└── tsconfig.json

Scripts in the generated project

| Script | Description | |---|---| | npm run inspect | Open the Mobilewright inspector against a running device | | npm run day1:04:starter | Run an exercise module's starter test directly | | npm run day1:05:starter, day1:06:starter, day1:07:starter, day2:09:starter, day2:10:webview:starter, day2:10:location:starter, day2:12:starter, day2:15:starter, day2:16:starter | Same, for the other modules with starter scripts |

mobilewright and @mobilewright/test are deliberately not included as dependencies — attendees add them in Module 3 of the course. Any spec, including ones without an npm run script, can be run directly with npx mobilewright test <path> [--grep starter|solution].

Writing tests

Follow the course: work through exercises/ day by day (see exercises/README.md for the index), using support/account.ts and support/navigation.ts as the shared helpers referenced throughout.

Releasing

Add an entry to CHANGELOG.md for the new version, then:

npm version patch   # or minor/major — commits, tags, and pushes (via postversion)

Pushing the tag triggers .github/workflows/publish.yml, which publishes to npm and creates the matching GitHub release (using the CHANGELOG.md section for that version as the release notes). Publishing uses npm's Trusted Publisher (OIDC) — no npm token/secret needed. On the package's npmjs.com settings, add a Trusted Publisher pointing at this GitHub repo and the publish.yml workflow file.

Template files live in templates/default/. Two files get special handling at scaffold time:

  • _gitignore → renamed to .gitignore (npm strips real .gitignore files from published tarballs)
  • package.json.template → renamed to package.json, with __PROJECT_NAME__ replaced by the prompted project name