/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

'use strict';

const resolved = require.resolve('./create_require_module', {
  [Symbol.for('jest-resolve-outside-vm-option')]: true,
});
if (typeof resolved !== 'string') {
  throw new TypeError(
    'require.resolve not spec-compliant: must return a string',
  );
}
module.exports = {
  required: require(resolved),
  resolved,
};
