Creating JavaScript Unit Tests
Available only in PyCharm Pro: download to start your free trial and explore the full set of Pro features.
PyCharm 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 PyCharm JavaScript library.
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.
On the Project Structure page, mark the new folder as a test folder, see Configuring Folders within a Content Root.
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.