Skip to content

Commit

Permalink
feat: add test config
Browse files Browse the repository at this point in the history
  • Loading branch information
woliveiras committed Jan 27, 2024
1 parent 7cd0edb commit 77a50b8
Show file tree
Hide file tree
Showing 13 changed files with 3,079 additions and 136 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Development
coverage
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,32 @@ npm i
npm run dev
```

## Running the tests

Running all tests:

```sh
npm t
```

Watching all tests:

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

To watch one file, you just need to add the path in the watch command:

```sh
npm run test:watch src/components/Example/Example.test.tsx
```

To run the coverage, you just need this command:

```sh
npm run coverage
```

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
Expand Down
Loading

0 comments on commit 77a50b8

Please sign in to comment.