summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-06 14:16:39 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-06 14:16:39 +0100
commitaad4162be83486553b08dacf556814f4108a2a81 (patch)
treee8507d8acd4f0428f4e3ee171ddbe852c7de4e95 /package.json
parentf80e509895b7b2c1d716ac276977b7165a13c192 (diff)
Set up Cypress
Diffstat (limited to 'package.json')
-rw-r--r--package.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json
index 0eeff5c..1d7dd37 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,8 @@
"build": "tsc",
"start": "node dist/start.js",
"dev": "nodemon -e ts,js --watch src --exec \"pnpm run build ; pnpm run start\"",
- "test": "echo \"Error: no test specified\" && exit 1"
+ "test:dev": "pnpm run dev & wait-on http://localhost:3000 && cypress open --e2e --browser chrome",
+ "test": "pnpm run build || true && pnpm run start & wait-on http://localhost:3000 && cypress run --e2e --browser chrome"
},
"engines": {
"node": ">=16.16.0"
@@ -38,10 +39,12 @@
"randomstring": "^1.3.0",
"request": "^2.88.2",
"sanitize-html": "^2.11.0",
- "toml": "^3.0.0"
+ "toml": "^3.0.0",
+ "wait-on": "^7.0.1"
},
"devDependencies": {
"@types/express": "^4.17.18",
+ "cypress": "^13.3.0",
"eslint": "^8.50.0",
"nodemon": "^2.0.22",
"prettier": "^2.8.8",