11cb0ef41Sopenharmony_ciimport { spawnPromisified } from '../common/index.mjs';
21cb0ef41Sopenharmony_ciimport { path } from '../common/fixtures.mjs';
31cb0ef41Sopenharmony_ciimport { strictEqual } from 'node:assert';
41cb0ef41Sopenharmony_ciimport { execPath } from 'node:process';
51cb0ef41Sopenharmony_ciimport { describe, it } from 'node:test';
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_cidescribe('ESM: experiemental warning for import.meta.resolve', { concurrency: true }, () => {
91cb0ef41Sopenharmony_ci  it('should not warn when caught', async () => {
101cb0ef41Sopenharmony_ci    const { code, signal, stderr } = await spawnPromisified(execPath, [
111cb0ef41Sopenharmony_ci      '--experimental-import-meta-resolve',
121cb0ef41Sopenharmony_ci      path('es-modules/import-resolve-exports.mjs'),
131cb0ef41Sopenharmony_ci    ]);
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci    strictEqual(stderr, '');
161cb0ef41Sopenharmony_ci    strictEqual(code, 0);
171cb0ef41Sopenharmony_ci    strictEqual(signal, null);
181cb0ef41Sopenharmony_ci  });
191cb0ef41Sopenharmony_ci});
20