From b542bc0c605571888a0de687df3b0dfdfbb3bbef Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Wed, 26 Jan 2022 20:20:50 +0100 Subject: [PATCH 1/2] - Missed one shorthand --- src/templates/exportService.hbs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/templates/exportService.hbs b/src/templates/exportService.hbs index 1d481dd5..4a398b90 100644 --- a/src/templates/exportService.hbs +++ b/src/templates/exportService.hbs @@ -17,9 +17,7 @@ import { request as __request } from '../core/request'; export class {{{name}}}{{{@root.postfix}}} { {{#if @root.exportClient}} - constructor(private readonly httpRequest: BaseHttpRequest) { - this.httpRequest = httpRequest; - } + constructor(private readonly httpRequest: BaseHttpRequest) {} {{/if}} {{#each operations}} From f8a3729d3959bd18195bf3f46da88fad0097c636 Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Wed, 26 Jan 2022 20:21:55 +0100 Subject: [PATCH 2/2] - Ignrore generated files in jest --- jest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.ts b/jest.config.ts index e1b5e68a..54e90be1 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -31,7 +31,7 @@ const config: Config.InitialOptions = { '/test/e2e/client.axios.spec.ts', '/test/e2e/client.babel.spec.ts', ], - testPathIgnorePatterns: ['/test/e2e/generated'], + modulePathIgnorePatterns: ['/test/e2e/generated'], }, ], collectCoverageFrom: ['/src/**/*.ts', '!/src/**/*.d.ts', '!/bin', '!/dist'],