Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.82 KB

README.md

File metadata and controls

66 lines (47 loc) · 1.82 KB

empirical-tc-ts

POC regarding the experimental determination of time complexities of algorithms written in TypeScript.

I wrote an article on Medium, that explains the motivation behind this implementation.

1. Getting started

In order to run this project, you must have already properly installed and configured the following dependencies:

2. Running the analysis

In order to evaluate the asymptotic analysis and generate the plots, run at the terminal:

yarn start

If you want to perform the same operation, but without generating transpiled javascript (development mode):

yarn dev

3. Quality assurance

3.1. Unit tests

With the project dependencies properly installed, the unit tests can be executed via terminal:

yarn test

Similarly, ro generate the coverage report, just run the command:

yarn coverage

3.2. Code linting

To format the code base to a preset pattern, just run:

yarn prettier

To generate the code linting report, but not apply the necessary fixes:

yarn lint

To generate the code linting report and apply the necessary fixes:

yarn lint:fix