Skip to content

Instantly share code, notes, and snippets.

@Farenheith
Created February 20, 2020 02:30
Show Gist options
  • Save Farenheith/ac7c5ce858ff15eaf2727937ccac5ad9 to your computer and use it in GitHub Desktop.
Save Farenheith/ac7c5ce858ff15eaf2727937ccac5ad9 to your computer and use it in GitHub Desktop.
Example of wrapper to a untestable class
import UntestableClass from 'untestable-class';
export interface NowTestableClassType {
someMethod(p: number): string;
}
export const NowTestableClass = UntestableClass as new (constructorParam: string) => NowTestableClassType;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment