const nodeAssert = require('node:assert');

async function main() {
  const exports = await import('./lib.js');

  nodeAssert.deepEqual(Object.keys(exports).sort(), ['default', 'parse']);
  nodeAssert.strictEqual(exports.parse, 'parse', 'Expected export exists and is correct');
  nodeAssert.strictEqual(
    exports.default.parse,
    'parse',
    'Target has __esModule, but this file triggered node compat mode',
  );
}

main();

module.exports = {};
