refacto config test
This commit is contained in:
9
suppress-deprecation-warnings.js
Normal file
9
suppress-deprecation-warnings.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// suppress-deprecation-warnings.js
|
||||
const originalEmitWarning = process.emitWarning;
|
||||
|
||||
process.emitWarning = (warning, type, code, ...args) => {
|
||||
if (code === 'DEP0040') {
|
||||
return;
|
||||
}
|
||||
return originalEmitWarning.call(process, warning, type, code, ...args);
|
||||
};
|
||||
Reference in New Issue
Block a user