Skip to content

Commit cda5d86

Browse files
authored
🔀 Merge pull request #143 from weakish/fix-npm-test
test: fix test dependencies
2 parents c6ff51e + 1c5495d commit cda5d86

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"underscore": "^1.8.3"
1818
},
1919
"devDependencies": {
20+
"@types/express": "^4.17.2",
2021
"blanket": "^1.2.3",
2122
"express": "^4.14.1",
2223
"mocha": "^3.2.0",
@@ -51,9 +52,9 @@
5152
},
5253
"scripts": {
5354
"test": "npm install --no-save leancloud-storage@3 typescript@2 && npm-run-all test-tsd test-express test-koa1 test-koa2",
54-
"test-express": "mocha test test/express",
55+
"test-express": "mocha test --timeout 8000 test/express",
5556
"test-tsd": "tsc --strict leanengine.d.ts",
56-
"test-koa1": "npm install --no-save leancloud-storage@3 koa@1 koa-bodyparser@2 && env FRAMEWORK=koa KOA_VER=1 mocha test test/koa",
57-
"test-koa2": "npm install --no-save leancloud-storage@3 koa@2 koa-bodyparser@4 && env FRAMEWORK=koa KOA_VER=2 mocha test test/koa"
57+
"test-koa1": "npm install --no-save leancloud-storage@3 koa@1 koa-bodyparser@2 && env FRAMEWORK=koa KOA_VER=1 mocha test --timeout 8000 test/koa",
58+
"test-koa2": "npm install --no-save leancloud-storage@3 koa@2 koa-bodyparser@4 && env FRAMEWORK=koa KOA_VER=2 mocha test --timeout 8000 test/koa"
5859
}
5960
}

0 commit comments

Comments
 (0)