Skip to content

Commit

Permalink
adds mocha polyfill to clear it.each errors (#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos authored May 13, 2021
1 parent 1d0f6fa commit 5a1f793
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/insomnia-app/app/mocha.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare namespace Mocha {
interface TestFunction {
// This is a hack until we can get rid of Mocha entirely from `insomnia-testing`.
// Until then, both declare global types which will always conflict and we need to do something like this to backport compatability.
each: jest.Each;
}
}
7 changes: 7 additions & 0 deletions packages/insomnia-inso/src/mocha.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare namespace Mocha {
interface TestFunction {
// This is a hack until we can get rid of Mocha entirely from `insomnia-testing`.
// Until then, both declare global types which will always conflict and we need to do something like this to backport compatability.
each: jest.Each;
}
}

0 comments on commit 5a1f793

Please sign in to comment.