feat: add cypress
This commit is contained in:
15
package.json
15
package.json
@@ -4,11 +4,16 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"dev": "next dev",
|
||||
"lint": "next lint && tsc",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"start": "node .next/standalone/server.js",
|
||||
"test:component": "cypress open --component",
|
||||
"test:component:headless": "cypress run --component",
|
||||
"test:e2e": "start-server-and-test test:setup http://127.0.0.1:3000/en/test \"cypress open --e2e\"",
|
||||
"test:e2e:headless": "start-server-and-test test:setup http://127.0.0.1:3000/en/test \"cypress run --e2e\"",
|
||||
"test:setup": "npm run build && npm run start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@contentstack/live-preview-utils": "^1.4.0",
|
||||
@@ -28,12 +33,16 @@
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"cypress": "^13.6.6",
|
||||
"dotenv": "^16.4.5",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "^14.0.4",
|
||||
"husky": "^9.0.11",
|
||||
"jiti": "^1.21.0",
|
||||
"lint-staged": "^15.2.2",
|
||||
"netlify-plugin-cypress": "^2.2.1",
|
||||
"prettier": "^3.2.5",
|
||||
"start-server-and-test": "^2.0.3",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user