chore: revert deprecate as an internal module (#40146)
Revert "chore: restore deprecate as an internal module (#40124)"
This reverts commit 737e3de3fa
.
This commit is contained in:
parent
7e312c81ca
commit
2c88626b51
13 changed files with 40 additions and 99 deletions
|
@ -20,7 +20,7 @@ export async function expectDeprecationMessages (func: () => any, ...expected: s
|
|||
// process.emitWarning seems to need us to wait a tick
|
||||
await new Promise(process.nextTick);
|
||||
console.warn = originalWarn;
|
||||
process.off('warning', warningListener);
|
||||
process.off('warning' as any, warningListener);
|
||||
expect(messages).to.deep.equal(expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue