Uh oh!
There was an error while loading. Please reload this page.
test: replace requireInject with t.mock tap api - #2370
Conversation
8c01f81 to
c50be61Compare- Replaces all usage of `requireInject` with `t.mock`
- Standardizes usage of tap as: `const t = require('tap')`
- Fixes some minor inconsistencies in testsc50be61 to
8742c17Comparedarcyclarke
commented
Feb 13, 2021
@ruyadorno we need to land this. @isaacs I'm willing to commit resources to get this across the finish line next week, unless you've got any reservations about landing it. I know It probably means cutting a minor of |
ruyadorno
commented
Feb 25, 2021
We need to update to tap@15 (not yet released at this point in time) and do a second pass of updating all test files, fixing conflicts and migrating new instances of I'm removing the |
wraithgar
commented
Apr 14, 2021
Woohoo! This got done in #3069 |
ruyadorno
commented
Apr 14, 2021
🥳 |
requireInjectwitht.mockconst t = require('tap')requireInjectplaced mocks within therequire.cacheand made mocksavailable for nested files, this type of scenario now requires an extra
t.mockdeclaration in order to define mocks to that nested file.tap, since currently this PR is just relying in a fork to run all tests, ref: Add mock API tapjs/tapjs#698