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

@gah/e2e-plugin

v1.0.0

Published

A plugin for gah to work with playwright.

Downloads

15

Readme

gah E2E Plugin

This plugin provides the possibility to run tests in gah with playwright.

Configuration

With this plugin, you can configure shared test helpers which can be used in all test modules. If no shared test helper is needed you can skip the first step. (1. Shared-test helper)

1. Shared-test helper

  1. Navigate to the shared gah module folder.
  2. Create a libary for shared test helper.
  3. Open a terminal in the shared module folder and execute:
gah plugin add @gah/e2e-plugin
  1. Press enter to skip "Enter test folder Path".

  2. Enter the path to your generated libary index.ts file.

2. Module tests

  1. Navigate to the gah module folder of the module you want to write tests for.

You can Skip 2. if you have no shared-test files.

  1. Ensure the shared module that declares the shared test helpers is registered as a dependency in the module. (It should be, otherwise why would you need the helpers?)
  2. Open a terminal in this folder and execute:
gah plugin add @gah/e2e-plugin
  1. Enter the path to your test folder.
  2. Press enter to skip "Enter shared-test Path".

Installation

  1. Navigate to host folder and execute:
gah install 
  1. Navigate to the module base folder where the test files are located and and execute:
gah install 

You can skip 3. if you have no shared test files.

  1. Navigate to shared module folder where the shared test helpers are located and execute:
gah install 

Usage

To run the tests navigate to the gah host folder and execute:

gah plugin run test-p <gah-modulename>

For CI:

gah plugin run test-ci-p <gah-modulename>