mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-09 21:14:38 +00:00
Implement initial Cypress testing configuration (#115)
* Implement initial Cypress testing configuration * Add docs on cypress for testing * Cypress cache for GitHub actions
This commit is contained in:
+4
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jambonz-webapp",
|
||||
"description": "Simple provisioning webapp for jambonz",
|
||||
"description": "A simple provisioning web app for jambonz",
|
||||
"version": "v1.0.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
@@ -34,7 +34,8 @@
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --ext ts,tsx --max-warnings=0",
|
||||
"format": "prettier --check .",
|
||||
"test": "echo 'need to setup testing'",
|
||||
"test": "cypress run --component --headless",
|
||||
"test:open": "cypress open --component",
|
||||
"serve": "serve -s dist -l ${HTTP_PORT:-3001}",
|
||||
"pm2": "pm2 start npm --name \"jambonz-webapp\" -- run serve",
|
||||
"deploy": "npm i && npm run build && npm run pm2"
|
||||
@@ -59,6 +60,7 @@
|
||||
"@typescript-eslint/parser": "^5.30.6",
|
||||
"@vitejs/plugin-react": "^1.3.0",
|
||||
"cors": "^2.8.5",
|
||||
"cypress": "^10.8.0",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.0",
|
||||
|
||||
Reference in New Issue
Block a user