Closed EwanValentine closed 4 years ago
const mockClient = jedlik.MockClient({ item: singleTestItem. list: arrayOfTestItems, createError: mockCreateError, updateError: mockUpdateError, deleteError: mockDeleteError, }); const Model = jedlik.Model({ table: 'test', client: mockClient, }); class Customer extends Model { constructor({ id, name }) { this.id = id; this.name = name; } }
This will interact with the test data instead of DynamoDB.
file:../jedlik
I guess this is redundant now so I'm going to close it
This will interact with the test data instead of DynamoDB.
Steps to test
file:../jedlik
in the package.json.