Jest does not validate <rootDir> reference in some environments
Created by: dinukadesilva
In the generated project, When I run npm run test
in a Jenkins box, the following reference was failing. And it seems that Jest does not validate the resultant URL.
"setupFiles": [ "<rootDir>\\config\\polyfills.js" ]
some environments return
'/var/lib/jenkins/jobs/test/workspace/\config\polyfills.js'