npm i
just put whatever you need on index.ts and run with
npm run dev
or create whatever folder and files you need and its tests. For instance:
example
|_main.ts
|_main.test.ts
and run
npm t
- jest-watch-typeahead let you filter tests by filename or test name
- use absolute imports from src in test files
- global.d.ts overrides .reduce() type, removing unecessary overloads that makes it harder to check type inferrence correctness while writing the callback.