Creating JavaScript Unit Tests
CLion 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 and configure it as a CLion JavaScript library.
Create JavaScript unit tests
Create a separate folder for tests (src folder. The name of this folder depends on the test framework you are using.
) next to theMark tests as a test source folder.
For each production file, create a separate test file by choosing (
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: 26 June 2023