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.
npm
Run configuration for launching npm, yarn and pnpm commands
(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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |
node
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |
jest
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |
vitest
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |
mocha
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |
nodeAttach
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations which will be executed before this configuration, for example: |
| Working directory for this run configuration. |
| When set to |
browser
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:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| 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: |