Browse Source

test: add 'loadFixture' to Mocha context augmentation

Paul Razvan Berg 4 năm trước cách đây
mục cha
commit
1ad3da6869
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
   }
 }