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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@konfidoo/primeng-cypress

v0.6.1

Published

Provides Cypress test helpers for PrimeNG components

Readme

primeng-cypress

Pull Request Tests

A lightweight helper library that provides Cypress test helpers for PrimeNG components (examples: pButton, pTabs, ...).

This README explains how to run the included component tests locally and how to use this library from another project ( locally during development or as an installed dependency).

Contents

  • lib/commands - implementation and types for commands such as pButton, pTabs
  • cypress/ - example Cypress tests and support files that show how to register commands and mount Angular components

Supported components

All commands support a generic set of options: general command options

Stability note: The public command API (command names and option shapes) may still change while the package version is below 1.0.0. Consumers should expect possible breaking changes to commands/options until the project reaches 1.0.0. Pin the package version in downstream projects or review changelogs before upgrading.

Not yet supported components

  • Any PrimeNG component beyond the helpers listed above (e.g., pTabMenu, pAccordion wrappers) is not currently exposed by this library.

Prerequisites

  • Node.js (>= 16 recommended)
  • primeNG (>= 20 recommended)
  • A working Cypress setup

How to use this library in another project

There are multiple ways to consume this helper library from another project:

1) As a published package

Simply install the package from npm:

npm install @konfidoo/primeng-cypress --save-dev

Then in your cypress/support/commands.ts (or cypress/support/e2e.ts) add:

import {registerPrimeNGCommands} from '@konfidoo/primeng-cypress'

registerPrimeNGCommands()

This will register the commands globally so you can use them in your tests.

If the package exports other helpers (for example pButton, pTabs for direct usage), import them from the package root:

import {pButton} from '@konfidoo/primeng-cypress'

TypeScript / IDE integration (important)

To get full TypeScript support and editor autocompletion for the custom commands (e.g. cy.pButton and .pButton()):

  • This project exposes the declaration for the Cypress augmentations at lib/commands/cypress.d.ts and the package root types file lib/index.d.ts references it. After installing the package the consumer should have node_modules/@konfidoo/primeng-cypress/lib/commands/cypress.d.ts available.

  • If your editor/TS server does not pick up the augmentation automatically, add the following to the consumer's tsconfig.json include (copy/paste):

    {
      "include": [
        "cypress/**/*.ts",
        "node_modules/@konfidoo/primeng-cypress/lib/**/*.d.ts",
        "...other includes..."
      ]
    }
  • Alternatively, add the package lib folder to typeRoots (less common):

    {
      "compilerOptions": {
        "typeRoots": [
          "node_modules/@types",
          "node_modules/@konfidoo/primeng-cypress/lib"
        ]
      }
    }
  • After changing tsconfig.json, restart the TypeScript server in your editor (VS Code: Command Palette → "TypeScript: Restart TS server").

Quick troubleshooting (consumer)

  • If you see "Property 'pButton' does not exist on type 'Chainable'":
    1. Ensure node_modules/@konfidoo/primeng-cypress/lib/commands/cypress.d.ts exists in the consumer project.
    2. Ensure your tsconfig.json includes that path (see snippet above).
    3. Restart the TypeScript server.
    4. Ensure you call registerPrimeNGCommands() in the Cypress support file so the runtime command exists.

Contributing / Running local checks

  • For development and contribution instructions, see CONTRIBUTING.md which contains build, linking, and local development workflows.

License

MIT License