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

creevey

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

creevey

Pretty easy visual testing with magic

  • 0.0.24
  • npm
  • Socket score

Version published
Weekly downloads
631
increased by50.24%
Maintainers
1
Weekly downloads
 
Created
Source

creevey

Pretty easy visual testing with magic

How to use

  • npm install -D creevey
  • Add withCreevey as top-level storybook decorator
  • Run tests yarn creevey --gridUrl "<gridUrl>/wd/hub"

What's storybook decorator?

Using Decorators

// .storybook/config.js
import { addDecorator } from "@storybook/react";
import { withCreevey } from "creevey";

addDecorator(withCreevey());

/* ... */

Also you can define creevey.config.ts

import path from "path";
import { CreeveyConfig } from "creevey";

const config: CreeveyConfig = {
  gridUrl: "<gridUrl>/wd/hub",
  storybookUrl: "http://localhost:6006",
  testRegex: /\.ts$/,
  testDir: path.join(__dirname, "tests"),
  screenDir: path.join(__dirname, "images"),
  reportDir: path.join(__dirname, "report"),
  threshold: 0.1,
  maxRetries: 2,
  browsers: {
    chrome: true,
    ff: "firefox",
    ie11: {
      browserName: "internet explorer",
      gridUrl: "<gridUrl>/wd/hub",
      limit: 2
      /* capabilities */
    },
    otherChrome: {
      browserName: "chrome",
      testRegex: /(Button|Input).ts$/,
      storybookUrl: "http://mystoryhost:6007",
      viewport: { width: 1024, height: 720 }
    }
  }
};

export default config;

FAQs

Package last updated on 16 Sep 2019

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