diff --git a/README.md b/README.md index 646d9eb1..d2dc9c26 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This project comes with a minimal scaffold based on the baseline React applicati ## Testing -The tests for this project are a mix of unit tests (Waves 01 and 02) and integration tests (Wave 03). The directions for each wave include a section about the tests for that wave. The unit tests provided for Wave 01 and Wave 02 require us to be prescriptive around component and prop names. The integration tests for Wave 03 allow for more freedom in the implementation details of this wave's feature. +The tests for this project are a mix of unit tests (Waves 01 and 02) and integration tests (Wave 03). The directions for each wave include a section about the tests for that wave. The unit tests provided for Wave 01 and Wave 02 require us to be prescriptive around component and prop names. The integration tests for Wave 03 allow for more freedom in the implementation details of this wave's feature. In order to run tests for this project, you will need to install the [Vitest](https://marketplace.visualstudio.com/items?itemName=vitest.explorer) by Vitest from the extensions marketplace. Writing front-end tests is outside the scope of the core curriculum. We provide minimal tests for this project for a few reasons. We can use these tests to partially verify the correctness of our code. Tests support the refactoring process and enforce consistency in implementation details. Additionally, by reviewing these front-end tests, we have some exposure to what unit tests and integration tests look like in front-end testing. diff --git a/images/react-chatlog-demo-extras.png b/images/react-chatlog-demo-extras.png index 06c298d2..77f413eb 100644 Binary files a/images/react-chatlog-demo-extras.png and b/images/react-chatlog-demo-extras.png differ diff --git a/package-lock.json b/package-lock.json index 9280f9b8..6f3a6632 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", - "eslint-plugin-vitest-globals": "^1.4.0", + "eslint-plugin-vitest-globals": "^1.5.0", "jest-extended": "^4.0.2", "jsdom": "^24.0.0", "vite": "^5.0.8", @@ -2621,9 +2621,9 @@ } }, "node_modules/eslint-plugin-vitest-globals": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vitest-globals/-/eslint-plugin-vitest-globals-1.4.0.tgz", - "integrity": "sha512-WE+YlK9X9s4vf5EaYRU0Scw7WItDZStm+PapFSYlg2ABNtaQ4zIG7wEqpoUB3SlfM+SgkhgmzR0TeJOO5k3/Nw==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vitest-globals/-/eslint-plugin-vitest-globals-1.5.0.tgz", + "integrity": "sha512-ZSsVOaOIig0oVLzRTyk8lUfBfqzWxr/J3/NFMfGGRIkGQPejJYmDH3gXmSJxAojts77uzAGB/UmVrwi2DC4LYA==", "dev": true }, "node_modules/eslint-scope": { diff --git a/package.json b/package.json index 069dcae9..808cb5a4 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.5", - "eslint-plugin-vitest-globals": "^1.4.0", + "eslint-plugin-vitest-globals": "^1.5.0", "jest-extended": "^4.0.2", "jsdom": "^24.0.0", "vite": "^5.0.8", diff --git a/src/main.jsx b/src/main.jsx index 54b39dd1..f8df67d5 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,10 +1,10 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' -import App from './App.jsx' -import './index.css' +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App.jsx'; +import './index.css'; ReactDOM.createRoot(document.getElementById('root')).render( , -) +);