Test React Components with Jest and React Testing Library on TestingJavaScript.com
by kentcdoddsLast 12 weeks · 0 commits
4 of 6 standards met
https://github.com/kentcdodds/react-testing-library-course/blob/88bbc8bc2465a436c8197717dfd673211bc36e90/src/__tests__/tdd-06-generate-data.js#L3 There is already newer version of https://www.npmjs.com/package/@jackfranklin/test-data-bot. Looks like there not so much breaking changes was introduced, and it's even written in TypeScript!
Hey Kent! Been going through your course and am really loving it. I was writing a test today to check the accessibility of a form I new wasn't accessible to begin with, but was surprised that it passed the test. I checked in this repo as well to find the same thing. If you check the file, the following test will pass: Any idea why? I looked into the issue for a minute online but can't seem to find anyone else experiencing this issue.
Repository: kentcdodds/react-testing-library-course. Description: Test React Components with Jest and React Testing Library on TestingJavaScript.com Stars: 1085, Forks: 378. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: https://testingjavascript.com/playlists/test-react-components-with-jest-and-react-testing-library-72cf Topics: kcd-edu, react, react-testing-library, testing, testingjavascript. Open PRs: 0, open issues: 3. Last activity: 3y ago. Community health: 71%. Top contributors: kentcdodds, abereghici, liamse, gavrielrh, jdorfman, lsminter, MichaelDeBoey, opauloh, Aprillion, zacjones93 and others.
JavaScript
As of axe-core 4.1.0, form inputs with only a placeholder are considered accessible, so the 'Inaccessible' form component is no longer inaccessible. This commit changes the 'Inaccessible' form component to only have an 'id' attribute, and updates the 'inaccessible forms fail axe' test to expect an accessibility violation, rather than swallowing the error. Resolves #25