ESP32 current is not constant
ESP32 current changes depending on WiFi activity, CPU frequency, board design, peripherals and sleep mode. A board can draw a few microamps in optimized deep sleep, but hundreds of milliamps during WiFi transmit peaks.
Typical current ranges
A practical design should treat WiFi peaks as the critical case. Development boards often consume much more current than bare ESP32 modules because of USB chips, LEDs and inefficient regulators.
How to estimate battery life
Use average current instead of peak current. Estimate active time, sleep time and regulator efficiency, then calculate runtime from battery capacity.
Design recommendations
Use deep sleep, remove power LEDs, choose a low quiescent-current regulator and measure real current with your final firmware.