Skip to content
Avatar

Highlights

  • Arctic Code Vault Contributor

Pinned

  1. 1
    import 'jest-axe/extend-expect'
    2
    import { axe } from 'jest-axe'
    3
    import { cleanup } from '@testing-library/react'
    4
    
                  
    5
    const axeConfig = {
  2. 1
    const LinkWrapper = ({
    2
      children: renderChildrenProp,
    3
      label
    4
    }) =>
    5
      <span className='someClass'>
  3. 1
    const Form = ({
    2
      something: somethingProp
    3
    }) => {
    4
      const [something, setSomething] = useState(somethingProp)
  4. 1
    const SOME_KEY = 'someOption'
    2
    
                  
    3
    const something = {
    4
      development: {
    5
        [SOME_KEY]: 'for dev'
  5. 1
    // Select.js
    2
    const Select = () => 
    3
      <select aria-label="Some label" value="someValue">
    4
        <option value="someOtherValue">Some Other Option</option>
    5
        <option value="someValue">Some Option</option>
  6. 1
    nock(url)
    2
       // If it fails, a comparison will show
    3
      .post('/task', query => !expect(query).toStrictEqual(body))
    4
      .reply(201)

21 contributions in the last year

Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Mon Wed Fri

Contribution activity

October 2020

Created an issue in facebook/react that received 7 comments

eslint-plugin-react-hooks: New rule to require useState updater.

const [state] = useState() Calling useState without assigning the second array value should be flagged.

7 comments

Seeing something unexpected? Take a look at the GitHub profile guide.

You can’t perform that action at this time.