Skip to content

Commit

Permalink
feat: add jest (#3)
Browse files Browse the repository at this point in the history
* feat: add jest

* feat: add pull request template
  • Loading branch information
arthurlferrao authored May 25, 2022
1 parent a118eb2 commit dfe9821
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": []
}
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Why?
<!-- Explain the purpose of this PR -->

### Changes
<!-- Describe the changes made to this PR -->

### How to test
<!-- Describe how to test this change (optional) -->

### Preview
<!-- A screenshot to show what this change does (optional) -->

### Issues
<!-- [Card ID](Add link to the card) -->
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/jest": "^27.5.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
Expand All @@ -19,7 +19,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "jest",
"eject": "react-scripts eject",
"lint": "eslint src/**/*.{js,jsx,ts,tsx,json}",
"lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx,json}'",
Expand Down Expand Up @@ -56,6 +56,8 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.6.2"
"prettier": "^2.6.2",
"@babel/preset-typescript": "^7.17.12",
"jest": "^28.1.0"
}
}
Loading

0 comments on commit dfe9821

Please sign in to comment.