Eval() in Monitors


I have a collection with “tests” that use “eval()” to pull in modular javascript that I keep in “globals”. Everything works great with the Postman UI and via Runner (also within the PM UI). However, when I setup a Monitor on the same collection, the “eval()'s” do not work. The console says “TypeError: eval(…) is not a function”.

I have spent a lot of time creating this collection to have lean tests by pulling in core JS from the globals. I would hate to revert and have bloated tests. Any ideas on getting “eval()” to work in Monitors?