diff --git a/package.json b/package.json index e49494f..997bb48 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,6 @@ }, "dependencies": { "@ant-design/icons": "^4.6.4", - "@testing-library/jest-dom": "^5.11.4", - "@testing-library/react": "^11.1.0", - "@testing-library/user-event": "^12.1.10", - "@types/jest": "^26.0.15", "@types/node": "16.0.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", @@ -34,15 +30,13 @@ "react": "^17.0.2", "react-app-rewired": "^2.2.1", "react-dom": "^17.0.2", - "react-intl-universal": "^2.4.2", - "react-scripts": "5.0.0", - "typescript": "^4.1.2", - "web-vitals": "^1.0.1" + "react-intl-universal": "^2.5.3", + "react-scripts": "^5.0.1", + "typescript": "^4.1.2" }, "scripts": { "start": "react-app-rewired start", "build": "react-app-rewired build", - "test": "react-app-rewired test", "eject": "react-scripts eject" }, "eslintConfig": { @@ -66,6 +60,6 @@ "devDependencies": { "@semantic-release/changelog": "^6.0.0", "@semantic-release/git": "^10.0.0", - "semantic-release": "^18.0.0" + "semantic-release": "^19.0.3" } } diff --git a/src/index.tsx b/src/index.tsx index 4538340..7b1e034 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,11 +2,11 @@ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; -import reportWebVitals from './reportWebVitals'; +// import reportWebVitals from './reportWebVitals'; ReactDOM.render(, document.getElementById('root')); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); +// reportWebVitals(); diff --git a/src/reportWebVitals.ts b/src/reportWebVitals.ts deleted file mode 100644 index 49a2a16..0000000 --- a/src/reportWebVitals.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ReportHandler } from 'web-vitals'; - -const reportWebVitals = (onPerfEntry?: ReportHandler) => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; diff --git a/src/setupTests.ts b/src/setupTests.ts deleted file mode 100644 index 8f2609b..0000000 --- a/src/setupTests.ts +++ /dev/null @@ -1,5 +0,0 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// 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';