Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixolith/percy-runner

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixolith/percy-runner

## How to use

  • 3.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by425%
Maintainers
2
Weekly downloads
 
Created
Source

Percy Runner

How to use

put the following object inside a projects root or respective extension package.json. Setup percy.io and connect the project to github. Builds will run on every deployment.

Options

{
    // percy project name (required)
    "project": "wurm-shopware",
    // percy stage (required)
    "stage": {
        // should match the $STAGE var of the deployment
        "staging": {
            // urls to test (required)
            "urls": [
                "/",
                "/saisonale-deko/",
                "/adler-apotheke-bernkastel-porz-b12-x-t15-x-h19-cm/10055366",
                "/unternehmen/",
                "/kontakt/"
            ],
            // additional tests to be run (via the test interface)
            "tests": [
                "./e2e/test.js"
            ],
        },
        "production": {
            "urls": [
                "/",
                "/saisonale-deko/",
                "/adler-apotheke-bernkastel-porz-b12-x-t15-x-h19-cm/10055366",
                "/unternehmen/",
                "/kontakt/"
            ],
            // additional tests to be run (via the test interface)
            "tests": [
                "./e2e/test.js"
            ],
        }
    },
    // the target has always open connections like WS? Set this to true (default = false)
    "noNetworkIdle": false,
    // screen widths to be snapshotted by percy (required)
    "widths": [480, 768, 1024, 1920],
    // screen min-height to be applied in snapshots (default)
    "minHeight": 2000,
    // device scale factor (default)
    "deviceScaleFactor": 1,
    // add custom css to e.G hide an iframe or layer (css string only) (default = "")
    "additionalCSS": "iframe { display: none; }",
    // maximum concurrency in snapshotting - usually this is fine (should not exceed 6) (default)
    "concurrency": 3,
    // options to pass directly to the puppeteer instance (https://github.com/puppeteer/puppeteer/blob/v2.1.1/docs/api.md#puppeteerlaunchoptions) (default)
    "puppeteer": {
        "headless": true,
        "args": ["--window-size=1920,1080"],
    },
};

FAQs

Package last updated on 09 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc