diff options
Diffstat (limited to 'build/tasks/node_smoke_tests.js')
-rw-r--r-- | build/tasks/node_smoke_tests.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/tasks/node_smoke_tests.js b/build/tasks/node_smoke_tests.js index 433a005d5..6f99b9981 100644 --- a/build/tasks/node_smoke_tests.js +++ b/build/tasks/node_smoke_tests.js @@ -1,8 +1,8 @@ "use strict"; -const fs = require( "fs" ); -const util = require( "util" ); -const exec = util.promisify( require( "child_process" ).exec ); +const fs = require( "node:fs/promises" ); +const util = require( "node:util" ); +const exec = util.promisify( require( "node:child_process" ).exec ); const verifyNodeVersion = require( "./lib/verifyNodeVersion" ); const allowedLibraryTypes = [ "regular", "factory" ]; @@ -26,7 +26,7 @@ async function runTests( { libraryType, sourceType, module } ) { } ${ sourceType } "${ module }"` ); } const dir = `./test/node_smoke_tests/${ sourceType }/${ libraryType }`; - const files = await fs.promises.readdir( dir, { withFileTypes: true } ); + const files = await fs.readdir( dir, { withFileTypes: true } ); const testFiles = files.filter( ( testFilePath ) => testFilePath.isFile() ); if ( !testFiles.length ) { |