- Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
- Opcional: Si usamos Fetch API en el proyecto:
| Example code for exporting data in a table to a csv file. |
| @mixin border-radius($radius, $prefixes: -moz -webkit -o) { | |
| @each $prefix in $prefixes { | |
| #{$prefix}-border-radius:$radius; | |
| } | |
| border-radius:$radius; | |
| } | |
| #id { | |
| @include border-radius(5px, -moz -webkit); |