Nice article! My 2 cent: Usually, I don't agree with "Avoid magic numbers or strings". I wrote an article about it. I prefer DAMP and Evident Data (Kent Beck).
I'd do instead:
const userPosts = callToGetUserPosts();
expect(userPosts).toBe(1);
which is a self-documenting single-liner.
Luís Soares
software developer