mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 01:29:41 +01:00
document testing
This commit is contained in:
parent
9a03b7c4e7
commit
877cb4a1c1
@ -14,6 +14,7 @@ install:
|
||||
- npm i
|
||||
|
||||
before_script:
|
||||
# https://docs.codeclimate.com/docs/travis-ci-test-coverage
|
||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
- chmod +x ./cc-test-reporter
|
||||
- ./cc-test-reporter before-build
|
||||
|
13
README.md
13
README.md
@ -26,6 +26,7 @@
|
||||
- [🍬 Typekit component](#-typekit-component)
|
||||
- [✨ Development](#-development)
|
||||
- [🔮 Linting](#-linting)
|
||||
- [👩🔬 Testing](#-testing)
|
||||
- [🎈 Add a new project](#-add-a-new-project)
|
||||
- [🚚 Deployment](#-deployment)
|
||||
- [🏛 Licenses](#-licenses)
|
||||
@ -155,6 +156,18 @@ npm run format
|
||||
npm run format:css
|
||||
```
|
||||
|
||||
### 👩🔬 Testing
|
||||
|
||||
Test suite is setup with [Jest](https://jestjs.io) and [react-testing-library](https://github.com/kentcdodds/react-testing-library).
|
||||
|
||||
To run all tests, including all linting tests:
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
All test files live beside the respective component. Testing setup, fixtures, and mocks can be found in `./jest.config.js` and `./jest` folder.
|
||||
|
||||
### 🎈 Add a new project
|
||||
|
||||
To add a new project, run the following command. This adds a new item to the top of the `projects.yml` file, creating the title & slug from the argument:
|
||||
|
Loading…
Reference in New Issue
Block a user