Back to Testing Library

Multi-Framework Code Blocks

blog/2019-03-17-code-blocks.mdx

latest479 B
Original Source

Many of the code samples have been updated to include tabs to switch between "plain" DOM Testing Library syntax and the wrappers for React, Cypress, etc.

Thanks to @tylerthehaas for pointing out that the previous examples could be confusing if you were targeting a specific library, and to the Docusaurus team for adding support for code tabs in version 1.7.2.