Skip to content

Commit

Permalink
Update changelog and readme. Fix linter errors. Add missed config opt…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
AmsterGet committed Jul 16, 2024
1 parent 584c7ba commit 558512b
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 60 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Added
- Logging link to the launch on its finish now available by default.
### Changed
- `@reportportal/client-javascript` bumped to version `5.1.3`.
- `@reportportal/client-javascript` bumped to version `5.1.4`. `launchUuidPrint` and `launchUuidPrintOutput` configuration options introduced.
### Deprecated
- Node.js 12 usage. This minor version is the latest that supports Node.js 12.

## [5.1.0] - 2024-01-24
### Changed
Expand All @@ -8,7 +12,7 @@

## [5.0.7] - 2024-01-19
### Deprecated
- Node.js 10 usage. This version is the latest that supports Node.js 10.
- Node.js 10 usage. This minor version is the latest that supports Node.js 10.
### Security
- Updated versions of vulnerable packages (@babel/traverse, follow-redirects).

Expand Down
78 changes: 40 additions & 38 deletions README.md

Large diffs are not rendered by default.

26 changes: 11 additions & 15 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@
*/

module.exports = {
moduleFileExtensions: [
'js'
],
testRegex: '/__tests__/.*\\.spec.(js)$',
collectCoverageFrom: [
'./lib/**'
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
moduleFileExtensions: ['js'],
testRegex: '/__tests__/.*\\.spec.(js)$',
collectCoverageFrom: ['./lib/**'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
};
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
* limitations under the License.
*/

'use strict';

const Reporter = require('./reporter');

module.exports = function (emitter, options, collectionRunOptions) {
return new Reporter(emitter, options, collectionRunOptions);
return new Reporter(emitter, options, collectionRunOptions);
};
4 changes: 4 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ module.exports = {
mode: options.mode || options.reportportalAgentJsPostmanMode,
skippedIssue: options.skippedIssue || options.reportportalAgentJsPostmanSkippedIssue,
restClientConfig: options.restClientConfig,
headers: options.headers,
launchUuidPrint: options.launchUuidPrint || options.reportportalAgentJsPostmanLaunchUuidPrint,
launchUuidPrintOutput:
options.launchUuidPrintOutput || options.reportportalAgentJsPostmanLaunchUuidPrintOutput,
};
},

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"author": "ReportPortal.io",
"license": "Apache-2.0",
"scripts": {
"lint": "eslint .",
"format": "npm run lint -- --fix",
"test": "jest --detectOpenHandles --config ./jest.config.js",
"test:coverage": "jest --coverage",
"lint": "eslint ./lib --quiet --fix"
"test:coverage": "jest --coverage"
},
"dependencies": {
"@reportportal/client-javascript": "^5.1.3",
Expand Down

0 comments on commit 558512b

Please sign in to comment.