# force lightning lwc test setup

## Description for force lightning lwc test setup

install Jest unit testing tools for Lightning Web Components.

## Flags

| Flag Name (Long) | Flag Name (Short) | Description                                                                                                                                                                                                               |
| ---------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--json`         | N/A               | **Type:** Boolean<br><br>format output as json                                                                                                                                                                            |
| `--loglevel`     | N/A               | **Type:** Value<br>**Valid Values:** `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`<br>**Default value:** `warn`<br><br>logging level for this command invocation |

## Examples for force lightning lwc test setup

```shell
sfdx force:lightning:lwc:test:setup
```
