@@ -4,8 +4,6 @@ import { spawn } from 'node:child_process';
44import { describe , it } from 'node:test' ;
55import assert from 'node:assert' ;
66
7- const onlyWithAmaro = { skip : ! process . config . variables . node_use_amaro } ;
8-
97describe ( 'Module syntax detection' , { concurrency : ! process . env . TEST_PARALLEL } , ( ) => {
108 describe ( 'string input' , { concurrency : ! process . env . TEST_PARALLEL } , ( ) => {
119 it ( 'permits ESM syntax in --eval input without requiring --input-type=module' , async ( ) => {
@@ -265,9 +263,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
265263 assert . strictEqual ( signal , null ) ;
266264 } ) ;
267265
268- it ( 'still throws on `await` in an ordinary sync function' ,
269- onlyWithAmaro ,
270- async ( ) => {
266+ it ( 'still throws on `await` in an ordinary sync function' , async ( ) => {
271267 const { stdout, stderr, code, signal } = await spawnPromisified ( process . execPath , [
272268 '--eval' ,
273269 'function fn() { await Promise.resolve(); } fn();' ,
@@ -318,9 +314,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
318314 assert . strictEqual ( signal , null ) ;
319315 } ) ;
320316
321- it ( 'still throws on double `const` declaration not at the top level' ,
322- onlyWithAmaro ,
323- async ( ) => {
317+ it ( 'still throws on double `const` declaration not at the top level' , async ( ) => {
324318 const { stdout, stderr, code, signal } = await spawnPromisified ( process . execPath , [
325319 '--eval' ,
326320 'function fn() { const require = 1; const require = 2; } fn();' ,
0 commit comments