Skip to content

szu-yun-ko/testing-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Lab

alt text

Backend

Fastify Server

Set your environment variable

cd backend
cp .env.sample .env

Development

Run a mongo container

docker run -d -p 27017:27017 mongo

Install dependencies

npm install

Start development mode

npm run dev

Run the test

npm run test

Frontend

React (by vite)

Development

cd frontend

Install dependencies

npm install

Start development mode

npm run dev

Visit http://localhost:5173

Run playwright test

npm run test:e2e

If occur some error, make sure you have installed the browser

# depends on your playwright.config.ts setting
npx playwright install chromium

show playwright report

npx playwright show-report

execute end-to-end tests in playwright UI

npm run test:ui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 89.0%
  • CSS 7.8%
  • JavaScript 1.7%
  • HTML 1.5%