Skip to content

exercism/javascript

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6d73c62 · Dec 16, 2020
Dec 16, 2020
Dec 16, 2020
Nov 23, 2020
Dec 16, 2020
Dec 16, 2020
Dec 16, 2020
May 29, 2017
Dec 16, 2020
Jan 16, 2020
Dec 16, 2020
Dec 16, 2020
Apr 30, 2020
Dec 16, 2020
Dec 16, 2020
Dec 16, 2020
Apr 25, 2019
Dec 16, 2020
Dec 16, 2020
Dec 16, 2020
Dec 16, 2020
Dec 16, 2020

Repository files navigation

JavaScript

configlet javascript / master codeql

Exercism exercises in JavaScript

This is the JavaScript 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 config.json.

In version 3 of Exercism, the above no longer holds. See the exercism/v3 repository for more information.

Tools

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

This runs 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.

npx babel-node scripts/test

If the ASSIGNMENT environment variable is set, only that exercise is tested. For example, if you only want to test the example.js for two-fer, you may, depending on your environment, use:

ASSIGNMENT=two-fer npx babel-node scripts/test

Running on Windows? Depending on your shell, environment variables are set differently. You can use cross-env to normalize this. The following should work across environments:

npx cross-env ASSIGNMENT=two-fer babel-node scripts/test

Related repositories