I did search a bit and couldn't find this specific one. So decided to ask. The question is the following.
We want to test the mean of a normal population. Suppose that $X_1,\dots,X_n\overset{i.i.d.}\sim N(\mu,1)$. Suppose that we are testing $H_0:\mu = \mu_0$ against the alternative $H_1:\mu\neq \mu_0$. We are looking for a rejection region of the form $|\overline{X}-\mu_0|>c$.
Therefore \begin{eqnarray*} P_{\mu_0}(|\overline{X}-\mu_0|>c) &=& \alpha\\ P_{\mu_0}(\sqrt{n}(|\overline{X}-\mu_0|)>c\sqrt{n}) &=& \alpha \end{eqnarray*} This implies that $c\sqrt{n} = z_{{\alpha}/{2}}$.
Thus we arrive at a test that calls for rejection of the null-hypothesis if $\sqrt{n}(|\overline{X}-\mu_0|) >z_{{\alpha}/{2}}$.
In this test, why is the p-value $P(|Z|>\text{TS})$, where $\text{TS} = \sqrt{n}(|\overline{X}-\mu_0|)$?