Skip to content

Instantly share code, notes, and snippets.

View maxPiroddi's full-sized avatar

Max maxPiroddi

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>How we ship code — a non-engineer's guide</title>
<style>
:root {
--bg: #fafaf7;
--fg: #1a1a1a;
@maxPiroddi
maxPiroddi / jext-axe-core
Created November 10, 2022 23:47
Custom Jest matcher to test with axe-core
/* -- SETUP -- */
/* .jest-setup.js */
/*
* At this time, JSDOM does not support required methods for testing color contrast, so we are unable to run these tests with axe-core.
* This rule may be run in a visual testing tool such as Storybook to ensure coverage.
*/
axe.configure({
rules: [
{