Jest cannot find setupFilesAfterEnv in circleci

Hi everyone, I’ve tried searching for solution on this but can’t find anything in the forum.

So I have a test work flow using jest which will load a file called /setupTests.js before running the test. Somehow it cannot find that file when running in circleci. It works when I run it locally though.

Any ideas? Thanks