From 7b190295d7ca64b5e1b5b23d54292412b18f8b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Abete?= Date: Thu, 27 Jul 2023 13:18:56 -0300 Subject: [PATCH 1/2] Update custom.test.ts in README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2d1b426..47d761f 100644 --- a/README.md +++ b/README.md @@ -569,16 +569,17 @@ npm test -- custom.test.ts

```typescript -import {resolveConfiguration} from '../src/utils' +import {mergeConfiguration, resolveConfiguration} from '../src/utils' import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder' +import {Configuration} from '../src/configuration'; jest.setTimeout(180000) it('Test custom changelog builder', async () => { - const configuration = resolveConfiguration( + const configuration = mergeConfiguration(undefined, resolveConfiguration( '', 'configs_test/configuration_approvers.json' - ) + )) as Configuration; const releaseNotesBuilder = new ReleaseNotesBuilder( null, // baseUrl null, // token From 4bc1ce265f621eb69c6e0edff03a0506d80cc455 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 28 Jul 2023 07:03:53 +0000 Subject: [PATCH 2/2] - simplify test sample --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47d761f..963ae0f 100644 --- a/README.md +++ b/README.md @@ -571,7 +571,6 @@ npm test -- custom.test.ts ```typescript import {mergeConfiguration, resolveConfiguration} from '../src/utils' import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder' -import {Configuration} from '../src/configuration'; jest.setTimeout(180000) @@ -579,7 +578,7 @@ it('Test custom changelog builder', async () => { const configuration = mergeConfiguration(undefined, resolveConfiguration( '', 'configs_test/configuration_approvers.json' - )) as Configuration; + )) const releaseNotesBuilder = new ReleaseNotesBuilder( null, // baseUrl null, // token @@ -595,6 +594,7 @@ it('Test custom changelog builder', async () => { false, // enable to fetch release information false, // enable to fetch reviews false, // commitMode + false, // enable exportOnly configuration // configuration )