Exercism TypeScript Track
Exercism exercises in TypeScript
This is the TypeScript track, one of the many tracks on exercism.
It holds all the exercises that are currently implemented and available for students to complete.
The track consists of various core exercises - the ones a student must complete - and each core exercise may unlock various side exercises.
You can find this in the
In version 3 of exercism, the above no longer holds. See the
exercism/v3repository for more information.
See CONTRIBUTING.md for a list of requirements to contribute to this track.
It also has a list of tools you can use, of which the
test tool is one of them.
Running the test suite
jest tests for all sample solutions.
This does not use the regular way to run
jest, because the example solution files must be renamed to be imported correctly into the test files.
yarn babel-node scripts/test
ASSIGNMENT environment variable is set, only that exercise is tested.
For example, if you only want to test the
two-fer, you may, depending on your environment, use:
ASSIGNMENT=two-fer yarn babel-node scripts/test
Running on Windows? Depending on your shell, environment variables are set differently. You can use
cross-envto normalize this. The following should work across environments:yarn cross-env ASSIGNMENT=two-fer babel-node scripts/test
- Website Copy (Mentor Notes)
- The TypeScript Analyzer
- The TypeScript Representer
- The TypeScript Test Runner