Skip to content

Instantly share code, notes, and snippets.

View connor-baer's full-sized avatar

Connor Bär connor-baer

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@connor-baer
connor-baer / test.spec.js
Created February 15, 2018 22:08
jest-axe with array of children
import React, { Fragment } from 'react';
import { renderToString } from 'react-dom/server';
import { axe, toHaveNoViolations } from 'jest-axe';
expect.extend(toHaveNoViolations);
const Component = () => (
<Fragment>
<input id="id" />
<label htmlFor="id" />