The intention is to build and deploy a very simple app (FE/BE + DB) which can be used to demonstrate tests for each layer using vitest, supertest, react-testing-library and playwright.
Starting point for building the app was the great FreeCodeCamp tutorial Full Stack Project Tutorial – Create A Notes App Using React and Node.js
Refactored the app for testability and added a few additional tweaks.
- FE and BE services are deployed using aws free tier on aws
- Database is deployed using serverless postgres on neon
- React
- Typescript
- Axios
- Node.js
- Typescript
- Express
- Postgres
- Primsa (DB ORM)
Executes against the deployed app in real environment
- Playwright.io with typescript
- Allure Production Test Report with history
Executes using frontend service running with local backend + db
- docker and Playwright.io
Executes against virtual DOM and mocked backend
- React Testing Library with vitest
- Mock Service Worker(msw) to mock the api
- msw/data for data store
Executes api tests against dockerised App and Seeded DB
Executes tests using mocked dependencies
Executes against dockerised BE App and Seeded DB
- Contract tests with pact