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

@testforgejs/vue-test-plugin-primevue-v3

v1.0.0-beta.4

Published

Official TestForge plugin for PrimeVue 3 integration in component tests

Readme

@testforgejs/vue-test-plugin-primevue-v3

PrimeVue 3 integration for TestForge component tests.

Installation

Choose your preferred package manager.

pnpm

pnpm add -D @testforgejs/vue-test-plugin-primevue-v3@beta

npm

npm install -D @testforgejs/vue-test-plugin-primevue-v3@beta

Yarn

yarn add -D @testforgejs/vue-test-plugin-primevue-v3@beta

@testforgejs/vue-test-core is required.

Usage

Using plugin defaults

The plugin provides a project-independent default configuration through getDefaultOptions():

import { createTestFramework } from "@testforgejs/vue-test-core";
import { primeVuePlugin } from "@testforgejs/vue-test-plugin-primevue-v3";

const framework = createTestFramework({
  presets: {
    default: {
      manifest: [
        {
          module: primeVuePlugin,
          enabled: true,
        },
      ],
      defaults: {
        primevueV3: primeVuePlugin.getDefaultOptions(),
      },
    },
  },
});

const factory = framework.testComponentFactory(MyComponent);

const wrapper = factory();

getDefaultOptions() returns an options factory suitable for use in a preset.

The plugin-provided defaults use an empty PrimeVue configuration:

{
}

This preserves PrimeVue 3's standard configuration without introducing project-specific behavior or forcing unstyled mode.

Plugin defaults are not applied automatically. Adding the plugin to a preset manifest declares that the plugin is available and whether it is enabled; the preset explicitly decides whether to use the plugin-provided defaults or provide its own configuration.

Providing custom options

You can define the PrimeVue configuration directly in the preset instead:

import { createTestFramework } from "@testforgejs/vue-test-core";
import { primeVuePlugin } from "@testforgejs/vue-test-plugin-primevue-v3";

const framework = createTestFramework({
  presets: {
    default: {
      manifest: [
        {
          module: primeVuePlugin,
          enabled: true,
        },
      ],
      defaults: {
        primevueV3: () => ({
          ripple: true,
          inputStyle: "filled",
        }),
      },
    },
  },
});

Using getDefaultOptions() is optional. Define custom defaults when tests require application-specific PrimeVue configuration such as ripple effects, input styling, locale settings, pass-through configuration, unstyled mode, or other PrimeVue behavior.

Configuration

PrimeVue options

The plugin integrates TestForge with PrimeVue 3 by registering the PrimeVue Vue plugin with the provided configuration.

Configuration fields such as ripple, inputStyle, locale, pt, unstyled, and other PrimeVue options belong to PrimeVue.

TestForge does not define an alternative configuration format for PrimeVue. The integration passes the provided configuration to the PrimeVue plugin during installation.

Refer to the PrimeVue 3 documentation for the complete set of supported configuration options and their behavior.

Styled and unstyled modes

The plugin-provided defaults do not select a styling mode explicitly:

{
}

PrimeVue 3 uses styled mode by default. Application themes in styled mode are configured separately by loading the corresponding PrimeVue theme CSS.

For example, theme setup belongs to the application's test environment or project configuration rather than the TestForge plugin options.

PrimeVue 3 also supports unstyled mode when explicitly enabled:

defaults: {
  primevueV3: () => ({
    unstyled: true,
  }),
},

Use a project-specific preset when component tests need to reproduce application-specific PrimeVue configuration.

Options factories

Preset defaults are defined as factories:

defaults: {
  primevueV3: () => ({
    ripple: true,
    inputStyle: "filled",
  }),
},

Each invocation of the factory produces a fresh options object for the current TestForge pipeline execution.

primeVuePlugin.getDefaultOptions() follows the same contract: it returns an options factory rather than a shared options object.

This allows presets to choose explicitly between:

  • the project-independent defaults provided by the plugin; and
  • a custom PrimeVue configuration defined by the preset.

Package exports

The package provides both descriptive and standardized plugin exports:

import { primeVuePlugin, plugin, PLUGIN_NAME } from "@testforgejs/vue-test-plugin-primevue-v3";

primeVuePlugin

The descriptive PrimeVue 3 plugin module export.

plugin

The standardized plugin module export.

It references the same plugin module as primeVuePlugin and provides a consistent package-level API across TestForge plugin packages.

PLUGIN_NAME

The standardized plugin identifier export.

For this package:

PLUGIN_NAME === "primevueV3";

The standardized plugin and PLUGIN_NAME exports are useful for tooling and other code that works with TestForge plugin packages generically.

Supported versions

  • Vue: 3.3.0 or higher
  • PrimeVue: 3.x

Documentation

See the TestForge documentation.

API Reference

See the API reference.