install cypress and add initial test

This commit is contained in:
Francis Cao 2024-02-27 21:41:34 -08:00
parent 23a45a3109
commit 5b9f0707b8
10 changed files with 768 additions and 20 deletions

View file

@ -42,7 +42,8 @@
"change-password": "node scripts/change-password.js",
"lint": "next lint --quiet",
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install",
"postbuild": "node scripts/postbuild.js"
"postbuild": "node scripts/postbuild.js",
"cypress-open": "cypress open"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
@ -133,6 +134,7 @@
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"cross-env": "^7.0.3",
"cypress": "^13.6.6",
"esbuild": "^0.17.17",
"eslint": "^8.33.0",
"eslint-config-next": "^14.0.4",