diff --git a/test/es-module/test-esm-loader-thenable.mjs b/test/es-module/test-esm-loader-thenable.mjs index 7254ed3df0bf07..3f18ea1a588306 100644 --- a/test/es-module/test-esm-loader-thenable.mjs +++ b/test/es-module/test-esm-loader-thenable.mjs @@ -1,4 +1,4 @@ -import { mustCall } from '../common/index.mjs'; +import '../common/index.mjs'; import { fileURL, path } from '../common/fixtures.mjs'; import { match, ok, notStrictEqual, strictEqual } from 'assert'; import { execPath } from 'node:process'; @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs'; describe('ESM: thenable loader hooks', { concurrency: true }, () => { it('should behave as a normal promise resolution', async () => { - const { code, stderr} = await spawn(execPath, [ + const { code, stderr } = await spawn(execPath, [ '--experimental-loader', fileURL('es-module-loaders', 'thenable-load-hook.mjs').href, path('es-modules', 'test-esm-ok.mjs'), diff --git a/test/es-module/test-esm-loader-with-syntax-error.mjs b/test/es-module/test-esm-loader-with-syntax-error.mjs index ec5e68e88b5a3f..39e6c48fed2ed4 100644 --- a/test/es-module/test-esm-loader-with-syntax-error.mjs +++ b/test/es-module/test-esm-loader-with-syntax-error.mjs @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs'; describe('ESM: loader with syntax error', { concurrency: true }, () => { it('should crash the node process', async () => { - const { code, stderr, } = await spawn(execPath, [ + const { code, stderr } = await spawn(execPath, [ '--experimental-loader', fileURL('es-module-loaders', 'syntax-error.mjs').href, path('print-error-message.js'), diff --git a/test/es-module/test-esm-non-js.mjs b/test/es-module/test-esm-non-js.mjs index 7cba878d085faa..e0e9781c419da4 100644 --- a/test/es-module/test-esm-non-js.mjs +++ b/test/es-module/test-esm-non-js.mjs @@ -6,7 +6,7 @@ import { describe, it } from 'node:test'; import spawn from './helper.spawnAsPromised.mjs'; -describe('ESM: non-js extensions fail', { concurrency: true}, () => { +describe('ESM: non-js extensions fail', { concurrency: true }, () => { it(async () => { const { code, stderr, signal } = await spawn(execPath, [ '--input-type=module', @@ -19,4 +19,3 @@ describe('ESM: non-js extensions fail', { concurrency: true}, () => { strictEqual(signal, null); }); }); - diff --git a/test/es-module/test-esm-specifiers.mjs b/test/es-module/test-esm-specifiers.mjs index 2fe735aa7a77d4..259c2734c2a8f2 100644 --- a/test/es-module/test-esm-specifiers.mjs +++ b/test/es-module/test-esm-specifiers.mjs @@ -28,7 +28,7 @@ describe('ESM: specifier-resolution=node', { concurrency: true }, () => { 'strictEqual(explicit, "esm");', 'strictEqual(implicit, "cjs");', 'strictEqual(implicitModule, "cjs");', - ].join('\n') + ].join('\n'), ]); strictEqual(stderr, ''); diff --git a/test/es-module/test-esm-unknown-or-no-extension.js b/test/es-module/test-esm-unknown-or-no-extension.js index 7a59a9f7988e90..fe7cb709786ef2 100644 --- a/test/es-module/test-esm-unknown-or-no-extension.js +++ b/test/es-module/test-esm-unknown-or-no-extension.js @@ -24,7 +24,7 @@ const { describe, it } = require('node:test'); ) { it('should throw', async () => { const entry = fixtures.path(fixturePath); - const { code, signal, stderr, stdout } = await spawn(process.execPath, [entry]); + const { code, signal, stderr, stdout } = await spawn(execPath, [entry]); assert.strictEqual(code, 1); assert.strictEqual(signal, null); diff --git a/test/es-module/test-esm-wasm.mjs b/test/es-module/test-esm-wasm.mjs index 843857027dbce2..ddfd061c037dde 100644 --- a/test/es-module/test-esm-wasm.mjs +++ b/test/es-module/test-esm-wasm.mjs @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs'; describe('ESM: WASM modules', { concurrency: true }, () => { it('should load exports', async () => { - const { code, stderr, stdout} = await spawn(execPath, [ + const { code, stderr, stdout } = await spawn(execPath, [ '--no-warnings', '--experimental-wasm-modules', '--input-type=module', @@ -23,7 +23,7 @@ describe('ESM: WASM modules', { concurrency: true }, () => { 'strictEqual(addImported(0), 42);', 'strictEqual(state, "WASM JS Function Executed");', 'strictEqual(addImported(1), 43);', - ].join('\n') + ].join('\n'), ]); strictEqual(stderr, '');