eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
747 stars 131 forks source link

Add testing capability in TypeScript #282

Closed mhaligowski closed 7 months ago

mhaligowski commented 7 months ago

This PR is a preparatory work for a solution for https://github.com/eugef/node-mocks-http/issues/280.

Adds capability of implementing mocha unit tests with TypeScript, and adds one sample test to make sure that it's working as expected. The tests are ran separately, with test:ts and spec:ts gulp commands, until they can be safely merged in to full testing and CI pipeline.

This PR DOES NOT enforce ESLint rules for TypeScript tests, since it's failing on the versions mismatches,

mhaligowski commented 7 months ago

@eugef is there anything else for me to do with this PR?

eugef commented 7 months ago

Just let me know in what order do you want PRs to be merged. First this one and then #281 ?

mhaligowski commented 7 months ago

Yeah, let's merge this one first, I'll rebase #281 and add some unit tests there.

eugef commented 7 months ago

Ok