Browse Source

test: add 'loadFixture' to Mocha context augmentation

Paul Razvan Berg 4 years ago
parent
commit
1ad3da6869
1 changed files with 4 additions and 0 deletions
  1. 4 0
      types/augmentations.d.ts

+ 4 - 0
types/augmentations.d.ts

@@ -1,9 +1,13 @@
+// eslint-disable @typescript-eslint/no-explicit-any
+import { Fixture } from "ethereum-waffle";
+
 import { Signers } from "./";
 import { Greeter } from "../typechain";
 
 declare module "mocha" {
   export interface Context {
     greeter: Greeter;
+    loadFixture: <T>(fixture: Fixture<T>) => Promise<T>;
     signers: Signers;
   }
 }