aptlyundecided / TomatoProgramming

1x 25 minute of programming as often as I can
0 stars 0 forks source link

Get Jest running in typescript / in the typescript project directory #6

Closed aptlyundecided closed 4 years ago

aptlyundecided commented 4 years ago

Literally just get jest working, so I can write unit tests for things, instead of little script files peppered all over the place.

aptlyundecided commented 4 years ago

https://github.com/aptlyundecided/TomatoProgramming/blob/master/typescript/Handbook%20Practice/_Interfaces/tests/generic.spec.ts

There you go.

Functioning, no-purpose test which passes when you run "npm test"

can't beat that