-
Notifications
You must be signed in to change notification settings - Fork 56
/
package.json
52 lines (52 loc) · 2.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "pix-e2e",
"version": "2.8.0",
"description": "Permet d'exécuter des tests de bout en bout sur la plateforme Pix",
"homepage": "https://github.com/1024pix/pix#readme",
"author": "GIP Pix",
"engines": {
"node": "^20.18.1"
},
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/1024pix/pix"
},
"scripts": {
"lint": "eslint .",
"cy:open": "npm run db:initialize && cypress open",
"cy:open:local": "DATABASE_URL=postgresql://postgres@localhost/pix_test npm run cy:open",
"cy:run": "npm run db:initialize && cypress run --browser=chrome && exit",
"cy:run:ci:app": "npx cypress run --browser=chrome --spec cypress/integration/pix-app/**/* --parallel --record --group e2e-tests-app --reporter junit --reporter-options 'mochaFile=/home/circleci/test-results/cypress.xml' --env type=base && exit",
"cy:run:ci:orga": "npx cypress run --browser=chrome --spec cypress/integration/pix-orga/**/* --record --group e2e-tests-orga --reporter junit --reporter-options 'mochaFile=/home/circleci/test-results/cypress.xml' && exit",
"cy:run:local": "DATABASE_URL=postgresql://postgres@localhost/pix_test npm run cy:run",
"cy:run:base": "cypress run --env type=base --config screenshotsFolder=cypress/snapshots/base",
"cy:test": "run-p start:api start:mon-pix start:orga cy:run",
"cy:test:local": "DATABASE_URL=postgresql://postgres@localhost/pix_test run-p start:api start:mon-pix start:orga cy:run",
"cy:test:open": "run-p start:api start:mon-pix start:orga cy:open",
"cy:test:open:local": "DATABASE_URL=postgresql://postgres@localhost/pix_test run-p start:api start:mon-pix start:orga cy:open",
"db:empty": "cd ../../api && npm run db:empty",
"db:initialize": "cd ../../api && npm run db:prepare",
"preinstall": "npx check-engine",
"start:api": "cd ../../api && DATABASE_URL=postgresql://postgres@localhost/pix_test npm run start:watch",
"start:mon-pix": "cd ../../mon-pix && npm start",
"start:orga": "cd ../../orga && npm start",
"test:ci:app": "npx wait-on http://localhost:3000/api http://localhost:4200 && npm run cy:run:ci:app",
"test:ci:orga": "npx wait-on http://localhost:3000/api http://localhost:4201 && npm run cy:run:ci:orga"
},
"devDependencies": {
"@badeball/cypress-cucumber-preprocessor": "^20.0.0",
"@cypress/browserify-preprocessor": "^3.0.2",
"@testing-library/cypress": "^10.0.1",
"axe-core": "^4.4.3",
"cypress": "^12.0.0",
"cypress-axe": "^1.4.0",
"cypress-visual-regression": "^5.0.2",
"eslint": "^8.0.0",
"eslint-plugin-cypress": "^3.0.0",
"npm-run-all2": "6.2.6"
},
"dependencies": {
"jsonwebtoken": "8.5.1"
}
}