From 1262405f78f80bbbb394b624c59f9f3b0ef9f38e Mon Sep 17 00:00:00 2001 From: AnastasiiaHladina Date: Wed, 15 Oct 2025 15:29:44 +0300 Subject: [PATCH 1/2] fix: message typo --- src/resources/MappingTemplate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/MappingTemplate.ts b/src/resources/MappingTemplate.ts index 36bc78c6..b50e9b8d 100644 --- a/src/resources/MappingTemplate.ts +++ b/src/resources/MappingTemplate.ts @@ -14,7 +14,7 @@ export class MappingTemplate { compile(): string | IntrinsicFunction { if (!fs.existsSync(this.config.path)) { throw new this.api.plugin.serverless.classes.Error( - `Mapping tempalte file '${this.config.path}' does not exist`, + `Mapping template file '${this.config.path}' does not exist`, ); } From a63299b3b342a10b9977d0fb30524b5780e36616 Mon Sep 17 00:00:00 2001 From: AnastasiiaHladina Date: Wed, 15 Oct 2025 17:30:12 +0300 Subject: [PATCH 2/2] fix: tests --- src/__tests__/mapping-templates.test.ts | 2 +- src/__tests__/resolvers.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/mapping-templates.test.ts b/src/__tests__/mapping-templates.test.ts index 9870b087..29fe3394 100644 --- a/src/__tests__/mapping-templates.test.ts +++ b/src/__tests__/mapping-templates.test.ts @@ -128,7 +128,7 @@ describe('Mapping Templates', () => { expect(function () { mapping.compile(); }).toThrowErrorMatchingInlineSnapshot( - `"Mapping tempalte file 'foo.vtl' does not exist"`, + `"Mapping template file 'foo.vtl' does not exist"`, ); }); }); diff --git a/src/__tests__/resolvers.test.ts b/src/__tests__/resolvers.test.ts index 55439d64..e441b740 100644 --- a/src/__tests__/resolvers.test.ts +++ b/src/__tests__/resolvers.test.ts @@ -722,7 +722,7 @@ describe('Resolvers', () => { `); }); - it('should generate Pipeline Function Resources with VTL mapping tempaltes', () => { + it('should generate Pipeline Function Resources with VTL mapping templates', () => { const api = new Api( given.appSyncConfig({ dataSources: {