Frontend implementation for the Orbit Talk chat app.
It calls a set of restful APIs exposed from orbittalk-api
Developed with
- React + Vite
- Tailwind CSS
- React Hook Form
Vitest + React testing library
Steps to set up:
npm install vitest --save-dev
- add
"test": "vitest",
to script inpackage.json
To use with react testing library - install jsdom
npm install jsdom --save-dev
- include jsdom in vite config file. - remember to change import
test: {
environment: 'jsdom',
},
- install react testing library
npm install @testing-library/react @testing-library/jest-dom --save-dev
- add a test setup file
tests/setup.ts
- include the setup file in vite config file
- install
npm install @testing-library/user-event --save-dev
Attempted to address issues around:
- Semantic HTML & ARIA
- Keyboard navigation support & Tab focus
- Accessible colors & Meaningful text