Skip to content

Commit e5a3bb0

Browse files
committed
install sinon: helps in unit tests
1 parent cf50282 commit e5a3bb0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"amqplib": "^0.5.2",
1414
"apidoc": "^0.17.6",
1515
"base-64": "^0.1.0",
16+
"cross-env": "^7.0.2",
1617
"chai-as-promised": "^7.1.1",
1718
"chai-http": "^4.3.0",
1819
"debug": "^4.0.0",
@@ -21,6 +22,7 @@
2122
"pg": "^7.4.3",
2223
"pg-hstore": "^2.3.2",
2324
"sequelize": "^4.22.6",
25+
"sinon": "^9.0.2",
2426
"uuid": "^7.0.1"
2527
},
2628
"devDependencies": {
@@ -45,8 +47,8 @@
4547
"build": "tsc",
4648
"apidoc": "apidoc -i src -o docs",
4749
"prestart": "npm run build && npm run apidoc",
48-
"start": "NODE_PATH=dist scripts/wait-for-it.sh localhost:5672 -- node dist/run.js",
49-
"test": "NODE_PATH=src node_modules/.bin/mocha --timeout 12000 --exit --require ts-node/register test/unit/validators/*.ts test/e2e/*.ts",
50+
"start": "cross-env NODE_PATH=dist scripts/wait-for-it.sh localhost:5672 -- node dist/run.js",
51+
"test": "cross-env NODE_PATH=src node_modules/.bin/mocha --timeout 12000 --exit --require ts-node/register test/unit/validators/*.ts test/e2e/*.ts",
5052
"cover": "nyc npm test",
5153
"seedlangs": "node dist/scripts/seed-defaultlangs.js",
5254
"precodecov": "npm run cover",

0 commit comments

Comments
 (0)