Typescript, ts-jest import .ts file instead of .js file with same names

I have a test file and the file that test imports. Something like:

// fileA.spec.ts

import fileA from "services/fileA"

// do stuff....

Now I have another build process that may run and will generate the equivalent JS file which leaves me with a file structure that looks like

src
- services
-- fileA.ts
-- fileA.js --> this is generated by a build script
-- fileA.spec.ts

If I run my jest test before running the script that creates the JS file, the tests run fine and pass. However, if I run them after then the import tries to import the JS file and causes errors.

How can I configure typescript or TS-jest to resolve imports to TS files and ignore JS files ?