{"version":3,"file":"environment.cjs","sourceRoot":"","sources":["../../src/internals/environment.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAEzC;;;;;GAKG;AACH,SAAgB,cAAc;IAC5B,kEAAkE;IAClE,eAAe;IACf,IAAA,cAAM,EACJ,OAAO,gBAAgB,KAAK,WAAW,EACvC,uFAAuF,CACxF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AATD,wCASC","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"]}