upgrade to lastest cra template

This commit is contained in:
Chika 2021-04-15 17:18:42 +03:00
parent ab883da9fc
commit c7b613d48f
3 changed files with 14 additions and 7 deletions

View File

@ -7,9 +7,9 @@
"@babel/code-frame": "^7.10.4",
"@babel/helper-split-export-declaration": "^7.11.0",
"@craco/craco": "^6.1.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"antd": "^4.15.0",
"axios": "^0.21.1",
"craco-less": "^1.17.1",
@ -34,10 +34,13 @@
"validator": "^13.5.2"
},
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/jest": "^26.0.22",
"@types/lodash": "^4.14.168",
"@types/luxon": "^1.26.3",
"@types/node": "^14.14.40",
"@types/pluralize": "^0.0.29",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/react-router-dom": "^5.1.7",
"@types/styled-components": "^5.1.9",
"@types/styled-system": "^5.1.11",
@ -56,7 +59,10 @@
"eslint:fix": "eslint ./src --fix"
},
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [

View File

@ -2,4 +2,5 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';

View File

@ -21,5 +21,5 @@
"noFallthroughCasesInSwitch": true
},
"include": ["src", "src/client"],
"exclude": ["src/server", "./node_modules/**/*"]
"exclude": ["./node_modules/**/*"]
}