I saw in a project using create-react-app a file named setupTest.js which just imports @testing-library/jest-dom and the tests seems to use the extented expect version, like .toBeInTheDocument.
I added the same file (setupTest.js) to my project but seems to be no effect.
In other words, how can I import @testing-library/jest-dom globally instead of doing in every .spec.ts file?