Skip to content
/ ts-kata Public template

Basic setup to practice code katas in Typescript

Notifications You must be signed in to change notification settings

ardunster/ts-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic framework for writing tested code katas in Typescript

This is a nearly minimal setup for coding a kata in Typescript. It uses NPM as a package manager, Jest as the test framework and has the Typescript version of StandardJS installed for formatting and linting.

Installation

These installation instructions assume that you already have git and a current version of NPM installed.

Clone the repository using git:

Then install with npm install.

Adding code and tests

For the most basic use, simply add functions to kata.ts, and import them in kata.test.ts for testing. Additional files may be created. Jest will automatically run tests in any file inside the src directory ending in .test.ts.

Running tests

Use the command npm run test to run all Jest tests from the terminal.

Building code

If you need to build the code separately from running tests, use npm run build to output files and source maps to the ./build directory.

About

Basic setup to practice code katas in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published