Skip to content

S3: add more S3 matchers. #68

@bboure

Description

@bboure

s3Object() supports toExist(), toExistAndMtchSnapshot(), toExistAndMatchInlineSnapshot() and toExistAndMatchObject().

However, toExistAndMatchObject() only works with JSON content.
Snapshots work with any kind of content, but we should add a way to match on string literals:

expect(s3Object(...)).toExistAndEqual('hello world!');

Other useful possible matchers:

  • toExistAndHaveContentType('image/jpeg');
  • toExistAndHaveAclMatching<AclType>({...});
  • etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions