|
13 | 13 | "scripts": { |
14 | 14 | "dev": "NODE_ENV=dev ts-node-dev --ignore-watch node_modules --inspect=0.0.0.0:9267 ./src/apps/mooc_backend/server.ts", |
15 | 15 | "dev:backoffice:frontend": "NODE_ENV=dev ts-node-dev --ignore-watch node_modules ./src/apps/backoffice/frontend/server.ts", |
16 | | - "test": "npm run test:unit && npm run test:features", |
| 16 | + "test": "npm run test:unit && npm run test:features && npm run cypress:run", |
17 | 17 | "test:unit": "NODE_ENV=test jest", |
18 | 18 | "test:features": "NODE_ENV=test cucumber-js -p default", |
19 | 19 | "lint": "tslint src/**/*.ts{,x}", |
|
22 | 22 | "build": "npm run build:clean && npm run build:tsc && npm run build:di", |
23 | 23 | "build:tsc": "tsc -p tsconfig.prod.json", |
24 | 24 | "build:di": "copy 'src/**/*.{json,yaml,html,png}' dist/src", |
25 | | - "build:clean": "rm -r dist; exit 0" |
| 25 | + "build:clean": "rm -r dist; exit 0", |
| 26 | + "cypress:open": "NODE_ENV=test ts-node tests/utils/cypress/open", |
| 27 | + "cypress:run": "NODE_ENV=test ts-node tests/utils/cypress/run" |
26 | 28 | }, |
27 | 29 | "dependencies": { |
28 | 30 | "@types/bson": "^4.0.2", |
|
46 | 48 | "copy": "^0.3.2", |
47 | 49 | "errorhandler": "^1.5.1", |
48 | 50 | "express": "^4.17.1", |
| 51 | + "express-promise-router": "^4.0.1", |
49 | 52 | "express-validator": "^6.6.1", |
50 | 53 | "glob": "^7.1.6", |
51 | 54 | "helmet": "^4.1.1", |
|
66 | 69 | "@types/cookie-parser": "^1.4.2", |
67 | 70 | "@types/cookie-session": "^2.0.41", |
68 | 71 | "@types/cucumber": "^6.0.1", |
69 | | - "@types/faker": "^5.1.0", |
| 72 | + "@types/faker": "^5.1.2", |
70 | 73 | "@types/jest": "^26.0.14", |
71 | 74 | "@types/nunjucks": "^3.1.3", |
72 | 75 | "@types/supertest": "^2.0.10", |
73 | 76 | "cucumber": "^6.0.5", |
| 77 | + "cypress": "^5.2.0", |
74 | 78 | "faker": "^5.1.0", |
75 | 79 | "husky": "^4.3.0", |
76 | 80 | "jest": "^26.4.2", |
|
0 commit comments