diff --git a/test/es-module/test-esm-detect-ambiguous.mjs b/test/es-module/test-esm-detect-ambiguous.mjs index e8dd40db581b3f..4b98545fc79236 100644 --- a/test/es-module/test-esm-detect-ambiguous.mjs +++ b/test/es-module/test-esm-detect-ambiguous.mjs @@ -267,11 +267,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL }, it('permits top-level `await` above import/export syntax', async () => { const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [ '--eval', - ` - await Promise.resolve(); - import "node:os"; - console.log("executed"); - `, + 'await Promise.resolve(); import "node:os"; console.log("executed");', ]); strictEqual(stderr, '');