Tests failing due to object destructuring

nodejs

#1

Hey guys,

My tests, which are passing in development, fail due to what seems like circleci’s node environment not understanding object destructuring:
/home/ubuntu/BackEndMaster/app/services/importBuildingsService.test.js:8
const { expect } = chai;
^

SyntaxError: Unexpected token {

I’ve specified the exact version of node that I’m using in development in the config file. Any ideas why this might be happening?


#2

I had this issue, for me it was that I incorrectly named the folder .circlecli so it wasn’t picking up my config.yml, it was caused by the older default node version


#3