Defines NestedList and NestedMap types to describe structure of nested arrays and objects within test data, addressing TS2322 errors.
Adds an index signature to the DataType interface for addressing TS7053 errors that occurred when attempting to index objects without explicit index signatures.
Explicitly types the passError parameter as any, for TS7006 errors.
Testing
PASS src/test/lib-dynamodb.e2e.spec.ts (31.098 s)
DynamoDBDocument
✓ initializes using the static constructor
✓ is using a random TableName=js-sdk-dynamodb-test-1715128811-le0x (1 ms)
✓ describes the test table
✓ creates the test table if it does not exist
.
.
.
✓ can serialize class instances as maps (1 ms)
updateTransformFunction
✓ modifies all fields of an object (3 ms)
Test Suites: 1 passed, 1 total
Tests: 85 passed, 85 total
Snapshots: 0 total
Time: 31.186 s
Ran all test suites.
Done in 32.00s.
Checklist
[x] If you wrote E2E tests, are they resilient to concurrent I/O?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Issue
Internal JS-5189
Description
NestedList
andNestedMap
types to describe structure of nested arrays and objects within test data, addressing TS2322 errors.DataType
interface for addressing TS7053 errors that occurred when attempting to index objects without explicit index signatures.passError
parameter asany
, for TS7006 errors.Testing
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.