Jest unit tests run fine locally, fail with strange JSON.parse errror on CircleCI

Has anybody come across this error? I have no idea what could be causing this:

#

  • The tests run fine locally (OS X Sierra)
  • The tests fail in CircleCI with or without --runInBand

Any ideas? Details like the config can be found here:

https://circleci.com/gh/vuejs-templates/webpack/411#tests/containers/0

Ignore this, I did a eh ew I shouldn’t and as a result had files in the scope of jest that it shouldnt parse at all.