Let $z=x+iy$. If I am evaluating $f(z)$ as $z$ tends to infinity, I should assume this means $x$ tends to infinity and $y$ tends to infinity?
I think this is the case but wanted to confirm. I realized this when checking the solution to a problem asking for the limit of $f(z)=e^z$ as $z$ tends to infinity. At first I simply thought infinity was the answer as I was "thinking" of $z$ as infinity $+ 0i$, but I see that it's periodic when thinking of $x$ and $y$ both tending to infinity. Obviously if it said the limit as $z$ tends to $5$, the answer would be $e^5$, but I suppose when thinking of infinity we consider both the real and imaginary parts to tend to infinity?
It's not necessary for both $x$ and $y$ to tend to infinity, just that one or the other tends to infinity. To understand what's going on we should consider the Riemann sphere, which is the stereographic projection of the complex plane.
To visualize this we take the unit sphere so that the equator intersects the $x,y$-plane which we will identify with the complex plane. We not take a line from the point $(0,0,1)$ on the sphere and connect it to some point on the plane $(x,y,0)$. This line will intersect the sphere at exactly one point with points inside the unit circle being mapped to the lower hemisphere and points outside the unit circle being mapped to the top hemisphere. This shows there is a bijection between points on the plane and points on the sphere without the point $(0,0,1)$.
However if I keep traveling away from the origin indefinitely I will be approaching the point $(0,0,1)$. The direction doesn't matter, we just need the length of $(x,y,0)$ to grow indefinitely. If you consider lines in the complex plane they will form great circles on the sphere that go through the point $(0,0,1)$ so even if you travel along the $x$ or $y$ axis you'll approach $(0,0,1)$. This is what motivates us to define $\infty = (0,0,1)$ in this fashion.
One interesting fact about the Riemann sphere is that the map $z \rightarrow \frac 1z$ inverts the sphere, mapping $\infty$ to $0$ and vice versa. This gives us an easy way to tell if something converges to $\infty$ since the reciprocal will converge to $0$. Since we don't have to appeal to the geometry to discuss the reciprocal map this gives us an analytic means to define convergence to infinity saying $f(z)$ converges to $\infty$ if $\frac 1{f(z)}$ converges to $0$. The geometric picture is useful for intuition and this second method is useful for calculation.