UNPKG

sls-test-tools

Version:

Custom Jest Assertions for Serverless Projects

18 lines (17 loc) 666 B
export * from "./helpers"; declare global { namespace jest { interface Matchers<R> { toExistAsS3Bucket(): Promise<R>; toExistInDynamoTable(table: string): Promise<R>; toHaveContentEqualTo(content: Record<string, unknown> | string): Promise<R>; toHaveContentTypeEqualTo(contentType: string): Promise<R>; toHaveEvent(): R; toHaveEventWithSource(expectedSourceName: string): R; toHaveS3ObjectWithNameEqualTo(objectName: string): Promise<R>; toContainItemWithValues(values: { [key: string]: unknown; }): Promise<R>; } } }