Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

[Feature Request]: Add test coverage to demonstrate mocking techniques #54

@AnnaDodson

Description

@AnnaDodson

Contact Details

No response

Feature Request

There are multiple ways to mock modules, classes and libraries in Jest - the starter should demonstrate good mocking practise that can easily be followed when using the template.

  • Example mocking a library module (node_module)
  • Example mocking a class
  • Example mocking a class function with different return values

Any more examples that would be beneficial to help new users of the the Lambda Starter and Jest.

Are you currently using a workaround / alternative solution instead?

Different mocking techniques and styles are being used across the different internal Lambda's. We should standardise and set a best practise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions