Skip to content

Commit

Permalink
Merge pull request #39 from DiogoMalfatti/react-testing-library
Browse files Browse the repository at this point in the history
feat: instalado react-te[Csting-library e configurado
  • Loading branch information
DiogoMalfatti committed Mar 26, 2021
2 parents d811d09 + 3cba7c6 commit d73d515
Show file tree
Hide file tree
Showing 7 changed files with 712 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.js
Expand Up @@ -3,6 +3,7 @@ module.exports = {
browser: true,
es2021: true,
'cypress/globals': true,
'jest/globals': true,
},
extends: [
'plugin:cypress/recommended',
Expand All @@ -23,4 +24,17 @@ module.exports = {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'import/prefer-default-export': 0,
},
overrides: [
{
files: [
'**/*.test.js',
],
plugins: ['jest'],
env: {
jest: true,
},
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
...require('eslint-plugin-jest').configs.recommended,
},
],
};
3 changes: 3 additions & 0 deletions jest.setup.js
@@ -0,0 +1,3 @@
import 'jest-styled-components'; // Styled Components
import 'jest-canvas-mock'; // <Lottie /> (JS-DOM)
import '@testing-library/jest-dom'; // Traz expects decentes para lidar com styles e outras coisas do HTML

1 comment on commit d73d515

@vercel
Copy link

@vercel vercel bot commented on d73d515 Mar 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.