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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ns3/nx-playwright

v5.6.0

Published

A plugin to run playwright e2e tests in nx monorepo.

Downloads

2,361

Readme

NX Playwright

A plugin to run playwright e2e tests in nx monorepo.

⚠️ Deprecation Notice ⚠️

Nx released their own Playwright Plugin: @nx/playwright. It is advised to use it instead of this package.

Install

npm i -D @ns3/nx-playwright

Generate

nx generate @ns3/nx-playwright:project my-desktop-e2e --project my-destkop

Providing project flag will generate a config that targets this frontend application.

Run project

npx nx run my-desktop-e2e:e2e

It works similarly to cypress runner in a sense that you can pass dev server options:

export interface StartDevServerOptions {
  devServerTarget?: string;
  skipServe?: boolean;
  baseUrl?: string;
  watch?: boolean; // Runs Playwright in UI mode
}

With --watch flag it runs Playwright in UI mode.

baseUrl is passed as BASE_URL env variable.

Apart from that, there is a command option which is generated with playwright test. It is done like that to allow you to replace it with different command or different runner altogether like playwright-watch, or playwright show-trace etc.

npx nx run my-desktop-e2e:e2e --command "playwright show-trace"

This executor passes every arg to playwright runner including nameless ones In case there is a name conflict between Playwright and Nx/Executor params simply suffix them with _:

npx nx run my-desktop-e2e:e2e app.spec.ts --debug # all args passed to Playwright
npx nx run my-desktop-e2e:e2e --help_ # help conflicts with Nx help so we pass it as help_