diff --git a/test/es-module/test-esm-loader-entry-url.mjs b/test/es-module/test-esm-loader-entry-url.mjs index 370871113239f1..e0b931693654a0 100644 --- a/test/es-module/test-esm-loader-entry-url.mjs +++ b/test/es-module/test-esm-loader-entry-url.mjs @@ -76,7 +76,7 @@ describe('--entry-url', { concurrency: true }, () => { ); }); - it('should support loading TypeScript URLs', async () => { + it('should support loading TypeScript URLs', { skip: !process.config.variables.node_use_amaro }, async () => { const typescriptUrls = [ 'typescript/cts/test-require-ts-file.cts', 'typescript/mts/test-import-ts-file.mts', diff --git a/test/parallel/test-runner-cli.js b/test/parallel/test-runner-cli.js index 231499728e3e95..3e8e14b747a22f 100644 --- a/test/parallel/test-runner-cli.js +++ b/test/parallel/test-runner-cli.js @@ -67,17 +67,22 @@ for (const isolation of ['none', 'process']) { `--experimental-${type}-types`, `--experimental-test-isolation=${isolation}`]; const child = spawnSync(process.execPath, args, { cwd: join(testFixtures, 'matching-patterns') }); - assert.strictEqual(child.stderr.toString(), ''); - const stdout = child.stdout.toString(); - - assert.match(stdout, /ok 1 - this should pass/); - assert.match(stdout, /ok 2 - this should pass/); - assert.match(stdout, /ok 3 - this should pass/); - assert.match(stdout, /ok 4 - this should pass/); - assert.match(stdout, /ok 5 - this should pass/); - assert.match(stdout, /ok 6 - this should pass/); - assert.strictEqual(child.status, 0); - assert.strictEqual(child.signal, null); + if (!process.config.variables.node_use_amaro) { + // e.g. Compiled with `--without-amaro`. + assert.strictEqual(child.status, 1); + } else { + assert.strictEqual(child.stderr.toString(), ''); + const stdout = child.stdout.toString(); + + assert.match(stdout, /ok 1 - this should pass/); + assert.match(stdout, /ok 2 - this should pass/); + assert.match(stdout, /ok 3 - this should pass/); + assert.match(stdout, /ok 4 - this should pass/); + assert.match(stdout, /ok 5 - this should pass/); + assert.match(stdout, /ok 6 - this should pass/); + assert.strictEqual(child.status, 0); + assert.strictEqual(child.signal, null); + } } {