Socket
Socket
Sign inDemoInstall

@acot/acot-runner-storybook

Package Overview
Dependencies
256
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @acot/acot-runner-storybook

An acot custom runner for Storybook.


Version published
Weekly downloads
86
increased by109.76%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.0.10-canary.0 (2021-04-04)

Bug Fixes

  • fix summary duration bug (a5fb2d3)
  • h1 (4982414)
  • update dependency boxen to v5 (271bb1f)
  • update dependency execa to v5 (456b0de)
  • update dependency fastify-static to v4 (4d69df7)
  • Fix omission of version specification in debug package (85f8ea4)
  • Minor bug fixes that occur during Audit (0ec7b94)
  • acot-preset-wcag: fix focusable-has-indicator bug (4488ca1)
  • acot-preset-wcag: fix type assertion (1a5b05a)
  • acot-runner: fix dependencies (00402e9)
  • cli: Fix a bug in init subcommand (982553b)
  • cli: Fix internal package import paths (5081a27)
  • core: Add element2selector error handling (4f1a9e5)
  • core: Fix a bug in which the queue is executed without waiting (51ddb83)
  • core: Fix a bug that BrowserPool hangs (93da5cb)
  • core: Fix a bug that prevented closing a used page (fd6e55f)
  • core: Fix navigation wait logic (1178dc9)
  • core: Human readable output log of browser console (10c6c27)
  • doc: Fix trivial typos in README.md (704019f)
  • document: fix dependencies (c49533a)
  • mock-logger: Tweak (ab9210d)
  • preset-wcag: Fix immutable flags on WCAG rules (f383f44)
  • reporter: Fix a bug that PrettyReporter hangs in the case of many URLs (7248532)
  • runner-storybook: Wait for configuring store (9daccd0)
  • Fix a bug in the rule performance tracker (07e8f36)
  • schema-validator: Fix a duplicate ValidationError export (30caad3)

Features

  • Add rule result for pretty reporter (f668f8a)
  • Improve progress display (pretty reporter) (dc4e9e1)
  • Initial implements (68f46a2)
  • acot-preset-wcag: add link-has-name (e77f56b)
  • cli: add --(reporter|runner)-with options (64944e1)
  • cli: Add --no-open options for preset serve sub-command (0a43e58)
  • cli: add @acot/sitemap to init sub-command (336196a)
  • cli: Add filter logic to debug flag (738c35d)
  • cli: add update-notifier (84fe911)
  • cli: For CI, enable verbose flag (0cd3e16)
  • cli: Improve UX for init sub-command (04e9aed)
  • cli: Skip ask about puppeteer if installed (350dc09)
  • connection: use GET request instead of HEAD request #34 (5a48d8a)
  • core: add chromium auto detection for BrowserPool (21f7228)
  • core: Add cleanup process for the page before perform immutable rule (c4e4820)
  • core: Add debug log (c0b9837)
  • core: switch to help from tags (7ac5678)
  • document: add pattern to specify test target (67c319f)
  • add @acot/acot-runner-sitemap package (9a760b7)
  • add @acot/mock package (fb6e4ba)
  • core: Performance improvements with immutable rules (572edef)
  • document: Add acot-head flag to test <head> in rule documentation (a1c5760)
  • document: Change summary extraction logic (361cd2b)
  • document: Upgrade design of preset preview server (21d555b)
  • plugin/wcag: Add page-has-title rule (4353cab)
  • preset: add dialog-focus rule (29ec6ba)
  • preset-wcag: Add page-has-valid-lang rule (8ee766c)
  • preset-wcag: add rule focusable-has-indicator (3bdc1fe)
  • preset-wcag: Add some rules to recommended set (6bafccc)
  • runner-storybook: Add filter options for storybook runner (c77d6bf)
  • types: add ComputedAccessibleNode type (bcd4322)
  • add img-has-name rule (1e72566)
  • add interactive-has-name rule to acot-plugin-wcag instead of button-has-name (95f8e2c)

Performance Improvements

  • document: Improve preset test performance (51aa3d2)

Readme

Source

@acot/acot-runner-storybook

An acot custom runner for Storybook.

The @acot/acot-runner-storybook crawls all the Stories in Storybook and sets them up for acot to audit.

Installation

Install via npm:

$ npm install --save-dev @acot/acot-runner-storybook

Usage

Add @acot/storybook to the runner field of the configuration file.

{
  "runner": "@acot/storybook"
}

Custom config for each story

You can pass a custom config to the parameters.acot field in Story's metadata, as in the following example:

// Component Story Format (CSF) Example:
export default {
  title: 'Button',
  component: Button,
  parameters: {
    acot: {
      rules: {
        '@acot/wcag/button-has-name': 'off',
      },
    },
  },
};

Options

include

Type: string[]
Required: false

The Story name pattern to include in the audit target. See the micromatch documentation for pattern strings.

{
  "runner": {
    "uses": "@acot/storybook",
    "with": {
      "include": ["*", "/atoms/**/*"]
    }
  }
}

exclude

Type: string[]
Required: false

The Story name pattern to exclude in the audit target. See the micromatch documentation for pattern strings.

{
  "runner": {
    "uses": "@acot/storybook",
    "with": {
      "exclude": ["/utils/**/*"]
    }
  }
}

Storybook compatibility

Storybook versions

  • Storybook v5
  • Storybook v6 (TODO)

UI frameworks

Since @acot/acot-runner-storybook doesn't rely on UI frameworks like React, Angular, or Vue.js, it can be used in conjunction with any UI framework of your choice!

Keywords

FAQs

Last updated on 04 Apr 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc