1import { spawnPromisified } from '../common/index.mjs'; 2import { path } from '../common/fixtures.mjs'; 3import { strictEqual } from 'node:assert'; 4import { execPath } from 'node:process'; 5import { describe, it } from 'node:test'; 6 7 8describe('ESM: experiemental warning for import.meta.resolve', { concurrency: true }, () => { 9 it('should not warn when caught', async () => { 10 const { code, signal, stderr } = await spawnPromisified(execPath, [ 11 '--experimental-import-meta-resolve', 12 path('es-modules/import-resolve-exports.mjs'), 13 ]); 14 15 strictEqual(stderr, ''); 16 strictEqual(code, 0); 17 strictEqual(signal, null); 18 }); 19}); 20