https://shiminori-tec-articles.onrender.com/
Make sure to install the dependencies:
npm install
Start the development server on http://localhost:3000
:
npm run dev
Executing Lint:
npm run lint
Executing Unit Test:
npm run test:ut
Executing VRT:
# Image pull
docker pull mcr.microsoft.com/playwright:v1.43.1-jammy
# Docker run
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.43.1-jammy /bin/bash
---
# Install dependencies
root@docker-desktop:/work# npm ci
# Install Playwright Browsers
root@docker-desktop:/work# npx playwright install --with-deps chrome msedge
# Build in VRT mode
root@docker-desktop:/work# npm run build:vrt
# Executing VRT
root@docker-desktop:/work# npm run test:vrt
# Update Snapshots
root@docker-desktop:/work# npm run test:vrt:us
Perform file formatting:
npm run format
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Server: Render