mmanela / chutzpah

Chutzpah is an open source JavaScript test runner which enables you to run unit tests using QUnit, Jasmine, Mocha and TypeScript.
http://mmanela.github.io/chutzpah/
Apache License 2.0
550 stars 143 forks source link

ES6 syntax mixed in Js code fails chutzpah plugin to test #793

Closed amanpreet-mymindinfotech closed 2 years ago

amanpreet-mymindinfotech commented 3 years ago

Hi I am using chutzpah with Qunit to test my js code in mvc project but it continuously fails for all tests which reference file containing es6 syntax like let/lambda etc.

I have tried Engine option but with that all test disappear from test explorer if I use option any other than Phantom.

My prime target is to test my js code in VS Test Explorer as well as CI/CD Pipeline.

amanpreet-mymindinfotech commented 3 years ago

I have also checked provided samples, but MVC related no sample is found.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

M0ns1gn0r commented 2 years ago

In the default configuration, Chutzpah uses PhantomJS which doesn't support ES6. See https://github.com/mmanela/chutzpah/issues/618