init project
This commit is contained in:
39
readme.md
Normal file
39
readme.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Typescript Katas
|
||||
|
||||
This repository contains a collection of katas that I tried to solve to practice Typescript.
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
## Running all tests
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
## Running specific test files
|
||||
|
||||
Each kata has a `tests.ts` file.
|
||||
|
||||
To run the tests for a specific kata, run the following command:
|
||||
|
||||
```bash
|
||||
npx mocha -r ts-node/register path/to/specific/tests.ts
|
||||
```
|
||||
|
||||
If you're in the right folder:
|
||||
|
||||
```bash
|
||||
npx mocha -r ts-node/register tests.ts
|
||||
```
|
||||
|
||||
## Adding a new kata
|
||||
|
||||
To add a new kata, create a new folder with the name of the kata and add the following files:
|
||||
```
|
||||
8kyu/kata-name/
|
||||
- solution.ts
|
||||
- tests.ts
|
||||
```
|
||||
Reference in New Issue
Block a user