Socket
Socket
Sign inDemoInstall

@wordpress/jest-puppeteer-axe

Package Overview
Dependencies
Maintainers
23
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/jest-puppeteer-axe - npm Package Compare versions

Comparing version 3.1.1-next.5df0cd52b7.0 to 3.1.1

28

build-module/index.js

@@ -20,8 +20,9 @@ /**

function formatViolations(violations) {
return violations.map(({
help,
helpUrl,
id,
nodes
}) => {
return violations.map(_ref => {
let {
help,
helpUrl,
id,
nodes
} = _ref;
let output = `Rule: "${id}" (${help})\n` + `Help: ${helpUrl}\n` + 'Affected Nodes:\n';

@@ -80,9 +81,10 @@ nodes.forEach(node => {

async function toPassAxeTests(page, {
include,
exclude,
disabledRules,
options,
config
} = {}) {
async function toPassAxeTests(page) {
let {
include,
exclude,
disabledRules,
options,
config
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
const axe = new AxePuppeteer(page);

@@ -89,0 +91,0 @@

@@ -25,8 +25,9 @@ "use strict";

function formatViolations(violations) {
return violations.map(({
help,
helpUrl,
id,
nodes
}) => {
return violations.map(_ref => {
let {
help,
helpUrl,
id,
nodes
} = _ref;
let output = `Rule: "${id}" (${help})\n` + `Help: ${helpUrl}\n` + 'Affected Nodes:\n';

@@ -85,9 +86,10 @@ nodes.forEach(node => {

async function toPassAxeTests(page, {
include,
exclude,
disabledRules,
options,
config
} = {}) {
async function toPassAxeTests(page) {
let {
include,
exclude,
disabledRules,
options,
config
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
const axe = new _puppeteer.default(page);

@@ -94,0 +96,0 @@

{
"name": "@wordpress/jest-puppeteer-axe",
"version": "3.1.1-next.5df0cd52b7.0",
"version": "3.1.1",
"description": "Axe API integration with Jest and Puppeteer.",

@@ -35,3 +35,3 @@ "author": "The WordPress Contributors",

"@axe-core/puppeteer": "^4.0.0",
"@babel/runtime": "^7.13.10"
"@babel/runtime": "^7.16.0"
},

@@ -45,3 +45,3 @@ "peerDependencies": {

},
"gitHead": "558d577d12bec15f05e694eb49a094836d885cca"
"gitHead": "9a1dd3474d937468e4cf9caf9886ad61ef0a8f50"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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