{"version":3,"file":"environment.mjs","sourceRoot":"","sources":["../../src/internals/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,wBAAwB;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,cAAc;IAC5B,kEAAkE;IAClE,eAAe;IACf,MAAM,CACJ,OAAO,gBAAgB,KAAK,WAAW,EACvC,uFAAuF,CACxF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC","sourcesContent":["import { assert } from '@metamask/utils';\n\n/**\n * Get the Snaps environment. This asserts that the environment has been\n * configured.\n *\n * @returns The Snaps environment.\n */\nexport function getEnvironment() {\n  // `snapsEnvironment` is a global variable that is set by the Jest\n  // environment.\n  assert(\n    typeof snapsEnvironment !== 'undefined',\n    'Snaps environment not found. Make sure you have configured the environment correctly.',\n  );\n\n  return snapsEnvironment;\n}\n"]}