This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'debug' package to log calling API
- Removed 'chalk' package and 'logger.js' to log color messages to console - Added 'debug' package to log all API calls and server responses - Refactored request-helper AFX-5165
- Loading branch information
Maksym Shykov
committed
Aug 25, 2020
1 parent
4415e75
commit 525c1a4
Showing
7 changed files
with
45 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
# qa-api-services | ||
|
||
The library to get access to the 'Setapp' API services in your E2E UI tests | ||
|
||
## Contributing guide | ||
|
||
1. Create feature branch and perform changes. | ||
2. Push changes to the origin and create pull-request. | ||
3. After pull-request merging update local master. | ||
4. Bump version and add a tag (for example using `npm version`). | ||
5. Push changes to the origin. | ||
6. Publish new version to NPM. | ||
6. Publish a new version to the GitHub Packages. | ||
|
||
**TIP**: you can use [np](https://github.com/sindresorhus/np) to perform steps 4-6 automatically | ||
|
||
## Versioning rules | ||
|
||
Given a version number MAJOR.MINOR.PATCH, increment the: | ||
* **patch** - when you make backwards-compatible bug fixes | ||
* **minor** - when you add functionality in a backwards-compatible manner | ||
* **major** - when you make incompatible API changes | ||
|
||
## Debug mode | ||
|
||
The [debug](https://www.npmjs.com/package/debug) package is using to log API requests/responses data. By default, all logging of API calls disabled | ||
Please, use `DEBUG=macpaw:qa-api-services` key in the main project to enable logging: | ||
|
||
```js | ||
DEBUG=macpaw:qa-api-services npm run e2e-local | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters