JetBrains Rider 2017.2 Help

Creating JavaScript Unit Tests

JetBrains Rider integrates with most popular JavaScript unit testing frameworks and provides rich coding assistance for writing JavaScript unit tests. To get framework-aware coding assistance, download the desired framework, configure it as a JetBrains Rider JavaScript library.

To create JavaScript unit tests

  1. Create a separate folder for tests (File | New | Directory) next to the src folder. The name of this folder depends on the test framework you are using.
  2. Mark tests as a test source folder.
  3. For each production file, create a separate test file by choosing (File | New | JavaScript File on the context menu of the folder for tests. The format of the test file name depends on the test framework you are using.

Last modified: 27 December 2017