Skip to content

3.1.0 / 4.0.0 breaks existing test-suite/build with Invalid Chai property: toHaveReceivedCommandWith on vitest #216

@WtfJoke

Description

@WtfJoke

Checklist

  • I have read Caveats documentation and didn't find a solution for this problem there.

Bug description

When we upgrade from version 3.0.1 to 3.1.0 our build/tests break.

Maybe related to #198

Reproduction

  1. Clone https://github.com/WtfJoke/aws-sdk-client-mock-reproducer-3.1.0
  2. npm install
  3. npm run build or npm run test fails

Commit is broken (updates the dependency to 3.1.0), where as the initial commit works

Environment

  • Node version: v20.11.0
  • Testing lib and version: vitest 1.4.0
  • Typescript version: 5.4.3
  • AWS SDK v3 Client mock version: 3.1.0
  • AWS JS SDK libs and versions: @aws-sdk/client-secrets-manager v3.535.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions