Hey! Sorry if this is a somewhat novice question, ...
# pact-js
j
Hey! Sorry if this is a somewhat novice question, but I'm very new to JS/TS and trying to help another team out: We are using axios to perform REST requests in our client classes, and the base_url is populated via an import from another module that handles environment variables (as constants). So what's the best way to change the base_url to point at the pact mock server?
t
Depends on your test library. With jest you can mock the import. See the jest docs for more
j
Okay thanks! We are in fact using Jest, so it sounds like I just need to dive into Jest a bit more