Skip to content

Instantly share code, notes, and snippets.

@RageCage64
Created August 11, 2021 20:50
Show Gist options
  • Save RageCage64/3b8e8fc56ce08b7df17868d18f19da28 to your computer and use it in GitHub Desktop.
Save RageCage64/3b8e8fc56ce08b7df17868d18f19da28 to your computer and use it in GitHub Desktop.
mockStaticClass potential bug reproduction
import {
ImportMock,
StaticMockManager
} from "ts-mock-imports";
import * as DynamoDBLibModule from "@aws-sdk/lib-dynamodb";
let documentClientImportMock: StaticMockManager<DynamoDBLibModule.DynamoDBDocumentClient>;
describe("example", function() {
before(function() {
documentClientImportMock = ImportMock.mockStaticClass(DynamoDBLibModule, "DynamoDBDocumentClient");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment