Skip to content

Commit

Permalink
refactor: migrate /auth endpoint handling to Typescript, Domain Drive…
Browse files Browse the repository at this point in the history
…n Design (#215)

* refactor: introduces nested routing in TS
* doc: add better documentation for functions
* chore: add eslint for all "*.spec.ts" files
* test(jestExpress): enhance mockResponse creation - mockResponse now allows injection of other response-related keys used to setup all the middlewares that helps in testing
* test(AuthRoutes): add /checkuser integration tests
* fix: update tsconfig.build.json to exclude spec files and public
* test: add CookieStore helper class to store cookies for auth'd routes
* Introduces ApplicationError as an abstract class for extension - this prevents developers from using ApplicationError directly and are forced to extend from the class (in Typescript).
  • Loading branch information
karrui authored Sep 7, 2020
1 parent beae593 commit 5cba28a
Show file tree
Hide file tree
Showing 31 changed files with 1,790 additions and 861 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"import/newline-after-import": "error",
"import/no-duplicates": "error"
}
}
},
{ "files": ["*.spec.ts"], "extends": ["plugin:jest/recommended"] }
],
"rules": {
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
Expand Down
25 changes: 25 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"@types/nodemailer-direct-transport": "^1.0.31",
"@types/promise-retry": "^1.1.3",
"@types/puppeteer-core": "^2.0.0",
"@types/supertest": "^2.0.10",
"@types/triple-beam": "^1.3.2",
"@types/uid-generator": "^2.0.2",
"@types/uuid": "^8.0.0",
Expand Down
Loading

0 comments on commit 5cba28a

Please sign in to comment.