diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js index db9d7e9d40ec9a..0ea8a298f40ac1 100644 --- a/test/sequential/test-module-loading.js +++ b/test/sequential/test-module-loading.js @@ -29,6 +29,9 @@ const path = require('path'); const backslash = /\\/g; +if (!process.env.NODE_PENDING_DEPRECATION) + process.on('warning', common.mustNotCall()); + console.error('load test-module-loading.js'); assert.strictEqual(require.main.id, '.');