JavaScript run configurations
This topic summarizes the run configurations available for JavaScript. Each table provides keys that are available within a run configuration and their descriptions.
Run configuration for launching npm, yarn and pnpm commands
note
You can use this run configuration type to execute tasks for various app types, such as React and TypeScript.
(required) | command to run |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Whitespace-separated list of scripts to apply with the 'run' command Default value: |
| Path to package.json file if it's outside of workspace root or working directory Default value: |
| Arguments passed to the command Default value: |
| Arguments passed to the package manager executable Default value: |
| Path to an npm executable Default value: |
| Package manager kind: npm, yarn or pnpm. Detected automatically if not specified Default value: |
Run configuration for launching Node.js
(required) | File to run |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Node.js command line options Default value: |
| Application command line options Default value: |
| Path to a node executable Default value: |
Run configuration for launching Jest tests
(required) | File to run |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Names of containing test fixtures and/or the test itself Default value: |
| Node.js command line options Default value: |
| Jest command line options Default value: |
| Reserved for internal use Default value: |
Run configuration for launching Vitest tests
(required) | File to run |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Names of containing test fixtures and/or the test itself Default value: |
| Node.js command line options Default value: |
| Vitest command line options Default value: |
| Reserved for internal use Default value: |
Run configuration for launching Mocha tests
(required) | File to run |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Names of containing test fixtures and/or the test itself Default value: |
| Node.js command line options Default value: |
| Mocha command line options Default value: |
| Reserved for internal use Default value: |
Attach to a Node.js process
(required) | Process PID |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
Run a web browser
(required) | URL to open |
| Custom environment variables for the process in the form of a JSON object. To define an environment variable, add a property, where the key is the variable name and the value is the value of the variable, for example:
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
| Browser command line options Default value: |
| Currently only 'chrome' is supported Default value: |
| Path to the browser executable Default value: |
Thanks for your feedback!