# JavaScript ユニットテストの作成

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

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 CLion JavaScript library](configuring-javascript-libraries.html).

Procedure: JavaScript の単体テストを作成する

1. `src`  フォルダーの隣にテスト用の別のフォルダー（  `ファイル | 新規 | ディレクトリ`  ）を作成します。 このフォルダーの名前は、使用しているテストフレームワークによって異なります。

2. Mark  `tests`  as a  test source folder .

3. 各実動ファイルについて、テスト用のフォルダーのコンテキストメニューで（  `ファイル | 新規 | JavaScript ファイル`  ）を選択して別のテストファイルを作成します。 テストファイル名の形式は、使用しているテストフレームワークによって異なります。

## See also

### プロシージャ

[JavaScript ライブラリを構成する](configuring-javascript-libraries.html)

