I was reading Wikipedia on the Dirac delta function https://en.wikipedia.org/wiki/Dirac_delta_function and there is a part that says: $\delta$ function is expressed by $$ \delta(x) = 1/2 \pi \int_{- \infty}^{\infty} e^{i \alpha x} d \alpha. $$
I was wondering why this can be interpreted as a delta function, because to be a delta function $\delta(x)$ has to be $0$ when $x$ is not zero. However, given some fixed non-zero $x$, $$ \lim_{L \rightarrow \infty} 1/2 \pi \int_{- L}^{L} e^{i \alpha x} d \alpha $$ does not seem to be $0$.
I would greatly appreciate any explanation. Thank you very much!