Docker cli: docker run command with quoted arguments

I’m trying to run execute jest -t variant with the following Docker cli command:

docker run -it node-jest npx jest -t "This string matches exactly one test"

Which does not do the same thing if I were to run npx jest -t "This string matches exactly one test" locally.

It appears that double quotes are being stripped/ignored and only This is getting passed to jest -t. It appears that This string matches exactly one test is getting split up on spaces and treated as individual arguments. Can someone explain why that is happening, and how to get "This string matches exactly one test" passed in to docker run correctly (hopefully in a readable/sane way)?

Source: StackOverflow