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

Commit

Permalink
Convert tests to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrearden committed Jun 18, 2020
1 parent 975ba2c commit 998fa32
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 57 deletions.
1 change: 1 addition & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ throw-deprecation: true
check-leaks: true
require:
- '@babel/register'
- ts-node/register
216 changes: 216 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"scripts": {
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run build && npm run check:integrations",
"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",
"testonly": "mocha src/**/__tests__/**/*.js",
"testonly": "mocha src/**/__tests__/**/*.ts",
"testonly:cover": "nyc npm run testonly",
"lint": "eslint src resources integrationTests",
"prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'",
Expand All @@ -53,7 +53,16 @@
"@babel/plugin-transform-flow-strip-types": "7.10.1",
"@babel/preset-env": "7.10.2",
"@babel/register": "7.10.1",
"@types/body-parser": "1.19.0",
"@types/chai": "4.2.11",
"@types/connect": "3.4.33",
"@types/express": "4.17.6",
"@types/mocha": "7.0.2",
"@types/multer": "1.4.3",
"@types/node": "14.0.11",
"@types/restify": "8.4.2",
"@types/sinon": "9.0.4",
"@types/supertest": "2.0.9",
"@typescript-eslint/eslint-plugin": "3.1.0",
"@typescript-eslint/parser": "3.1.0",
"babel-eslint": "10.1.0",
Expand All @@ -80,6 +89,7 @@
"restify": "4.3.2",
"sinon": "9.0.2",
"supertest": "4.0.2",
"ts-node": "8.10.2",
"typescript": "3.9.5",
"unfetch": "4.1.0"
},
Expand Down
Loading

0 comments on commit 998fa32

Please sign in to comment.