use node: prefix for requires

mostly because code is being autogenerated by all the AI stuff using
this prefix. it's also used in the stack trace.
This commit is contained in:
Girish Ramakrishnan
2025-08-14 11:17:38 +05:30
parent d3b77c3be1
commit 12e073e8cf
202 changed files with 395 additions and 395 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ describe('System', function () {
it('can get filesystems', async function () {
// does not work on archlinux 8!
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
const filesystems = await system.getFilesystems();
expect(filesystems).to.be.ok();
@@ -31,7 +31,7 @@ describe('System', function () {
it('can get swaps', async function () {
// does not work on archlinux 8!
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
const swaps = await system.getSwaps();
expect(swaps).to.be.ok();
@@ -40,7 +40,7 @@ describe('System', function () {
it('can check for disk space', async function () {
// does not work on archlinux 8!
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
if (require('node:child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
await system.checkDiskSpace();
});