Skip to content

Commit

Permalink
Update CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chardos committed Jun 15, 2020
1 parent 20e9399 commit c848126
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions CONTRIBUTING.md
Expand Up @@ -86,21 +86,39 @@ you have several options:

# Code Style

We're using Prettier, ESlint and the Airbnb preset.
We're using Prettier, ESlint and the Airbnb preset. To fix errors which are automatically fixable, run:

## Verifying linting style
```
npm run format
```

To run the linter, run:

```
npm run lint
```

# Testing

There are a few test scripts, depending on what type of testing you want to run.

**Unit tests**

To run unit tests only:

```
npm run test:unit
```

**Watch mode**

To run all tests in watch mode (this skips `npm install`):

```
npm test
npm run test:watch
```

# Test coverage
**Test coverage**

```
npm run test:cov
Expand Down

0 comments on commit c848126

Please sign in to comment.