aleios-cloud / sls-test-tools

Custom Jest Assertions for Serverless integration testing.
MIT License
192 stars 20 forks source link

toExistInDynamoTable assertion only works with strict PK/SK naming conventions #44

Open JoshThorne opened 2 years ago

JoshThorne commented 2 years ago

If the table you are testing on does not have a partition key of 'PK' (i.e. instead of 'pk') or does not have a sort key of 'SK' an error is thrown/test is failed regardless of table state. Instead the assertion should allow the dev to input a PK/SK of their choosing.