|
1 |
| -import { |
2 |
| - DynamoDBStreamChangeRecordBase, |
3 |
| - DynamoDBStreamRecord, |
4 |
| -} from '@aws-lambda-powertools/parser/schemas/dynamodb'; |
5 | 1 | import context from '@aws-lambda-powertools/testing-utils/context';
|
6 |
| -import type { Context, DynamoDBRecord, SQSRecord } from 'aws-lambda'; |
| 2 | +import type { Context, SQSRecord } from 'aws-lambda'; |
7 | 3 | import * as v from 'valibot';
|
8 | 4 | import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest';
|
9 | 5 | import { z } from 'zod';
|
@@ -508,8 +504,7 @@ describe('Class: AsyncBatchProcessor', () => {
|
508 | 504 | '@aws-lambda-powertools/parser/schemas/sqs'
|
509 | 505 | );
|
510 | 506 | const extendedSchema = SqsRecordSchema.extend({
|
511 |
| - // biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema |
512 |
| - body: JSONStringified(customSchema as any), |
| 507 | + body: JSONStringified(customSchema), |
513 | 508 | });
|
514 | 509 | const customObject1 = {
|
515 | 510 | name: 'test-1',
|
@@ -563,8 +558,7 @@ describe('Class: AsyncBatchProcessor', () => {
|
563 | 558 | '@aws-lambda-powertools/parser/schemas/sqs'
|
564 | 559 | );
|
565 | 560 | const extendedSchema = SqsRecordSchema.extend({
|
566 |
| - // biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema |
567 |
| - body: JSONStringified(customSchema as any), |
| 561 | + body: JSONStringified(customSchema), |
568 | 562 | });
|
569 | 563 | const customObject1 = {
|
570 | 564 | name: 'test-1',
|
@@ -613,8 +607,7 @@ describe('Class: AsyncBatchProcessor', () => {
|
613 | 607 | '@aws-lambda-powertools/parser/schemas/sqs'
|
614 | 608 | );
|
615 | 609 | const extendedSchema = SqsRecordSchema.extend({
|
616 |
| - // biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema |
617 |
| - body: JSONStringified(customSchema as any), |
| 610 | + body: JSONStringified(customSchema), |
618 | 611 | });
|
619 | 612 | const customObject1 = {
|
620 | 613 | name: 'test-1',
|
|
0 commit comments