
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
better-cypress-axe
Advanced tools
This package extends the existing and already awesome cypress-axe package. This package bundles the required axe-core dependencies, which is the reason why I felt it should be a separate package to cypress-axe.
Assuming you already have cypress installed and setup.
npm install --dev better-cypress-axe
# Alternatively if using yarn
yarn add dev better-cypress-axe
NOTE: There is no need to add axe-core or cypress-axe as they're already bundled into this package to get around the issues mentioned above.
Then follow the steps from cypress-axe setup...
Import better-cypress-axe
by adding to cypress/support/index.js
import "better-cypress-axe"
configureAxe - note this isn't required
You can define a custom cypress loggers and violation handing by passing in an object to the checkAlly
command.
This is useful for ensuring the logging follows a certain format, or that the final report doesn't fail a build.
You'll need to add a cypress task to log to the terminal console.
const customViolationLogger = violation => cy.task("log", violation)
const customViolationHandler = violation => cy.task("log", violation)
cy.checkA11y(
context, // can use undefined
options, // can use undefined
{
logger: customViolationLogger,
asserter: customViolationHandler
}
)
Add to cypress/typings.d.ts
import "better-cypress-axe"
# Use nvm or node version as per .nvmrc
nvm use
# Install Dependencies
npm i
# Build for deploy
npm run build
# Lint files
npm run lint
Contributions and PR's welcome
FAQs
Commands to help with Cypress-Axe
We found that better-cypress-axe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.