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

@dwol/person-roles-layer-test

v0.0.2

Published

## Tech - Framework: [Nuxt 3](https://nuxt.com/) - UI Library: [Nuxt UI v3](https://ui.nuxt.com/)

Readme

Person Roles UI

Tech

Development and Contributing

Please review the Code of Conduct and Contributing guidelines before contributing to this project to ensure a positive and productive experience for everyone.

Create a fork and local copy of this repo. Answer Y to create a local clone.

gh repo fork bcgov/business-ui

Change into the directory and install the packages.

cd bcgov/business-ui/person-roles
pnpm install

Startup the development environment.

pnpm run dev

Build and Preview

Build the static site

pnpm run generate

Locally preview the static site

npx serve .output/public

Testing

Unit

Unit testing is configured to use the following libraries:

To run Vitest:

pnpm test:unit

To run Vitest Coverage:

pnpm test:unit:cov

E2E

Unit testing is configured to use the following libraries:

Please use Faker to generate unique test data

To run Playwright in the terminal:

pnpm test:e2e

To run Playwright in ui mode:

pnpm test:e2e:ui

Playwright Config

The globalSetup option will create and save an auth user state which can then be used inside other tests:

  globalSetup: './tests/e2e/setup',

To use this auth state:

  test.describe('Describe Block', () => {
    test.use({ storageState: `tests/e2e/.auth/bcsc-user.json` })

    test('My Test', async ({ page }) => {
      // stuff
    })
  })

To run tests in headless mode, set the headless property in the Playwright config:

  use: {
    headless: true
  }

Environment Variables Setup

Before running any e2e tests, ensure the .env file has the correct values. Missing or incorrect values will lead to test failures. Below are the required environment variables:

# playwright login
PLAYWRIGHT_TEST_BCSC_USERNAME=""
PLAYWRIGHT_TEST_BCSC_PASSWORD=""

# The full url the tests will run against (local/dev/test/sandbox)
NUXT_BASE_URL=""

Important

  • A maximum of 4 workers seems to be the sweet spot for tests to pass without colliding with each other.
  • Setting to 1 worker will fully disable running tests in parallel.
  • Using the Playwright extension/testing tab does not execute the global setup and save the auth state. You must run pnpm:e2e to at least create the auth files before running tests with the extension.