busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

babel es6 support #477

Closed ischoe closed 8 years ago

ischoe commented 8 years ago

I'm getting errors like :

Uncaught exception: SyntaxError: Unexpected token 'const'

when I am running buster test and my code contains es6 syntax.

For production environment I am transpiling all files from es6 to es5 and then run the tests...and that runs fine. But on my local environment I would like to skip that and directly run the tests. Is that possible anyhow with buster ?

ischoe commented 8 years ago

UPDATE : seems to be a phantomjs issue not a buster issue....

dominykas commented 8 years ago

Seems like you need to transpile your tests before running them in buster.