|
28 | 28 | "standard": "^16.0.3" |
29 | 29 | }, |
30 | 30 | "dependencies": { |
| 31 | + "@types/express": "^5.0.6", |
31 | 32 | "ajv": "^8.6.2", |
32 | 33 | "ajv-formats": "^2.1.1", |
33 | 34 | "argon2": "^0.41.1", |
|
78 | 79 | }, |
79 | 80 | "scripts": { |
80 | 81 | "action:test": "node node_modules/mocha/bin/mocha test/unit-tests --recursive --exit", |
81 | | - "action:coverage": "NODE_ENV=test node node_modules/nyc/bin/nyc.js --lines=80 node_modules/mocha/bin/mocha.js src/* --recursive --exit", |
82 | | - "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", |
| 82 | + "action:coverage": "NODE_ENV=test MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_test node node_modules/nyc/bin/nyc.js --lines=80 npm run test", "action:lint-src": "node node_modules/eslint/bin/eslint.js src/", |
83 | 83 | "action:lint-test": "node node_modules/eslint/bin/eslint.js test/", |
84 | 84 | "action:lint-test-utils": "node node_modules/eslint/bin/eslint.js test-utils/", |
85 | 85 | "clean": "node node_modules/depcheck/bin/depcheck.js", |
86 | 86 | "lint:src": "node node_modules/eslint/bin/eslint.js src/ --fix", |
87 | 87 | "lint:test": "node node_modules/eslint/bin/eslint.js test/ --fix", |
88 | 88 | "lint:test-utils": "node node_modules/eslint/bin/eslint.js test-utils/ --fix", |
89 | | - "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.js", |
| 89 | + "populate:dev": "NODE_ENV=development node-dev src/scripts/populate.mjs", |
90 | 90 | "migrate:dev": "NODE_ENV=development MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_dev node-dev src/scripts/migrate.js", |
91 | 91 | "migrate:test-black-box": "NODE_ENV=development MONGO_CONN_STRING=mongodb://docdb:27017 MONGO_DB_NAME=cve_dev node-dev src/scripts/migrate.js", |
92 | 92 | "migrate:test": "NODE_ENV=test MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js", |
93 | | - "populate:stage": "NODE_ENV=staging node src/scripts/populate.js", |
94 | | - "populate:int": "NODE_ENV=integration node src/scripts/populate.js", |
95 | | - "populate:prd": "NODE_ENV=production node src/scripts/populate.js", |
| 93 | + "populate:stage": "NODE_ENV=staging node src/scripts/populate.mjs", |
| 94 | + "populate:int": "NODE_ENV=integration node src/scripts/populate.mjs", |
| 95 | + "populate:prd": "NODE_ENV=production node src/scripts/populate.mjs", |
96 | 96 | "populate-cve:dev": "NODE_ENV=development node-dev src/scripts/populate-cve.js", |
97 | 97 | "populate-cve:stage": "NODE_ENV=staging node src/scripts/populate-cve.js", |
98 | 98 | "populate-cve:int": "NODE_ENV=integration node src/scripts/populate-cve.js", |
|
105 | 105 | "start:prd": "node src/swagger.js && NODE_ENV=production node src/scripts/updateOpenapiHost.js && NODE_ENV=production node src/index.js", |
106 | 106 | "swagger-autogen": "node src/swagger.js", |
107 | 107 | "test": "NODE_ENV=test mocha --recursive --exit || true", |
108 | | - "test:integration": "NODE_ENV=test node-dev src/scripts/populate.js y; NODE_ENV=test MONGO_CONN_STRING=mongodb://docdb:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js; NODE_ENV=test mocha test/integration-tests --recursive --exit", |
109 | | - "test:integration-local": "NODE_ENV=test node-dev src/scripts/populate.js y; NODE_ENV=test MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js; NODE_ENV=test mocha test/integration-tests --recursive --exit", |
| 108 | + "test:integration": "NODE_ENV=test node-dev src/scripts/populate.mjs y; NODE_ENV=test MONGO_CONN_STRING=mongodb://docdb:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js; NODE_ENV=test mocha test/integration-tests --recursive --exit", |
| 109 | + "test:integration-local": "NODE_ENV=test node-dev src/scripts/populate.mjs y; NODE_ENV=test MONGO_CONN_STRING=mongodb://localhost:27017 MONGO_DB_NAME=cve_test node-dev src/scripts/migrate.js; NODE_ENV=test mocha test/integration-tests --recursive --exit", |
110 | 110 | "test:unit-tests": "NODE_ENV=test mocha test/unit-tests --recursive --exit || true", |
111 | 111 | "test:coverage": "NODE_ENV=test nyc --reporter=text mocha src/* --recursive --exit || true", |
112 | 112 | "test:coverage-html": "NODE_ENV=test nyc --reporter=html mocha src/* --recursive --exit || true", |
|
0 commit comments