Skip to content

studiozeffa/typescript-training-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Training Course: Challenges

This repo has everything you need to complete the challenges for the TypeScript training course.

The challenges are mostly structured as unit tests, which will be authored using the Jest testing framework. For each challenge, write a function and an associated set of unit tests which asserts the correct behaviour.

We'll be writing the tests using TypeScript, a language that has excellent support from Jest.

Installation

  • Ensure you have the latest LTS version of node.js installed.
  • Clone or download this repository.
  • In the terminal, change directory to this repo and run npm install to install the dependencies.

Usage

  • Each set of challenges can be found in the challenges directory.
  • Create two new files in the src directory for each set of challenges - one for the implementation, and the other for the tests. The first set of challenges already has these files created - see the src folder for more details.
  • To run the jest runner once, use the command:
npm test
  • To run the jest runner in 'watch mode', which will re-run any changed tests when a file is saved, use the command:
npm run test:watch

About

Starter repo for the TypeScript training course challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published