When we migrated unit tests to Jest in request #13806, we forgot to exclude the ".test.ts" and ".test.js" patterns from all the gettext extraction scripts. As we never translate anything in unit tests, it only slows down gettext extraction.
We should exclude those files properly.