Fix types and login logo, remove unneeded files
This commit is contained in:
@ -71,10 +71,9 @@ Simple CMS uses the [Forking Workflow](https://www.atlassian.com/git/tutorials/c
|
||||
2. Create a branch from `main`. If you're addressing a specific issue, prefix your branch name with the issue number.
|
||||
3. If you've added code that should be tested, add tests.
|
||||
4. If you've changed APIs, update the documentation.
|
||||
5. Run `yarn test` and ensure the test suite passes.
|
||||
6. Use `yarn format` to format and lint your code.
|
||||
7. PR's must be rebased before merge (feel free to ask for help).
|
||||
8. PR should be reviewed by two maintainers prior to merging.
|
||||
5. Use `yarn format` to format and lint your code.
|
||||
6. PR's must be rebased before merge (feel free to ask for help).
|
||||
7. PR should be reviewed by two maintainers prior to merging.
|
||||
|
||||
## Debugging
|
||||
|
||||
@ -105,34 +104,6 @@ When debugging the CMS with Git Gateway you must:
|
||||
4. Refresh the page
|
||||
5. You should be able to log in via your Netlify Identity email/password
|
||||
|
||||
### Fine tune the way you run unit tests
|
||||
|
||||
There are situations where you would want to run a specific test file, or tests that match a certain pattern.
|
||||
|
||||
To run all the tests for a specific file, use this command:
|
||||
|
||||
```
|
||||
yarn jest <filename or file path>
|
||||
```
|
||||
|
||||
The first part of the command, `yarn jest` means running the locally installed version of `jest`. It is equivalent to running `node_modules/.bin/jest`.
|
||||
|
||||
Example for running all the tests for the file `gitlab.spec.js`: `yarn jest gitlab.spec.js`
|
||||
|
||||
Example for running all the tests for the file `API.spec.js` in the `gitlab` package:
|
||||
|
||||
`yarn jest ".+backend-gitlab/.+/API.spec.js`
|
||||
|
||||
To run a specific test in a file, add the flag `--testNamePattern`, or `-t` for short followed by a regexp to match your test name.
|
||||
|
||||
Example for running the test "should return true on project access_level >= 30" in the API.spec.js in `gitlab` package:
|
||||
|
||||
```
|
||||
yarn jest -t "true on p" ".+backend-gitlab/.+/API.spec.js"
|
||||
```
|
||||
|
||||
For more information about running tests exactly the way you want, check out the official documentation for [Jest CLI](https://jestjs.io/docs/cli).
|
||||
|
||||
## License
|
||||
|
||||
By contributing to Simple CMS, you agree that your contributions will be licensed under its [MIT license](LICENSE).
|
||||
|
Reference in New Issue
Block a user