Skip to content

Commit 5cc0a25

Browse files
chore: introduce "test:integration-local" command
This introduces a new "npm run" command: "test:integration-local" which is equivalent to "test:integration" except that it uses the proper connection string to connect to a local instance of MongoDB during development. Signed-off-by: Andrew Lilley Brinker <abrinker@mitre.org>
1 parent b367b2c commit 5cc0a25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"swagger-autogen": "node src/swagger.js",
106106
"test": "NODE_ENV=test mocha --recursive --exit || true",
107107
"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",
108+
"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",
108109
"test:unit-tests": "NODE_ENV=test mocha test/unit-tests --recursive --exit || true",
109110
"test:coverage": "NODE_ENV=test nyc --reporter=text mocha src/* --recursive --exit || true",
110111
"test:coverage-html": "NODE_ENV=test nyc --reporter=html mocha src/* --recursive --exit || true",

0 commit comments

Comments
 (0)