Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 977425d

Browse files
committed
Convert tests to TS
1 parent 975ba2c commit 977425d

File tree

6 files changed

+274
-50
lines changed

6 files changed

+274
-50
lines changed

.mocharc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ throw-deprecation: true
22
check-leaks: true
33
require:
44
- '@babel/register'
5+
- ts-node/register

package-lock.json

Lines changed: 216 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"scripts": {
3131
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run build && npm run check:integrations",
3232
"test:ci": "npm ci && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build && npm run check:integrations",
33-
"testonly": "mocha src/**/__tests__/**/*.js",
33+
"testonly": "mocha src/**/__tests__/**/*.ts",
3434
"testonly:cover": "nyc npm run testonly",
3535
"lint": "eslint src resources integrationTests",
3636
"prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'",
@@ -53,7 +53,16 @@
5353
"@babel/plugin-transform-flow-strip-types": "7.10.1",
5454
"@babel/preset-env": "7.10.2",
5555
"@babel/register": "7.10.1",
56+
"@types/body-parser": "1.19.0",
57+
"@types/chai": "4.2.11",
58+
"@types/connect": "3.4.33",
59+
"@types/express": "4.17.6",
60+
"@types/mocha": "7.0.2",
61+
"@types/multer": "1.4.3",
5662
"@types/node": "14.0.11",
63+
"@types/restify": "8.4.2",
64+
"@types/sinon": "9.0.4",
65+
"@types/supertest": "2.0.9",
5766
"@typescript-eslint/eslint-plugin": "3.1.0",
5867
"@typescript-eslint/parser": "3.1.0",
5968
"babel-eslint": "10.1.0",
@@ -80,6 +89,7 @@
8089
"restify": "4.3.2",
8190
"sinon": "9.0.2",
8291
"supertest": "4.0.2",
92+
"ts-node": "8.10.2",
8393
"typescript": "3.9.5",
8494
"unfetch": "4.1.0"
8595
},

0 commit comments

Comments
 (0)