Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECMA 6 not supported #618

Closed
ILoveITScience opened this issue Mar 21, 2017 · 6 comments
Closed

ECMA 6 not supported #618

ILoveITScience opened this issue Mar 21, 2017 · 6 comments

Comments

@ILoveITScience
Copy link

Hello,

I have the following test:

"use strict";

describe("let", function () {

    // let available in ECMA 6 and higher
    it("Let", function () {
        let result = sum(2, 3);
        expect(result).toBe(5);

        function sum(value1, value2) {
            return value1 + value2;
        };
    });
});

It's not recognized by Chutzpah in the test explorer. If I change the word "let" into "var" it's recognized and displayed in the Visual Studio Test-Explorer. It seems like ECMA 2015 is not supported, is it?

  • Visual Studio 2017 Enterprise
  • Latest update of chutzpah
  • jasmine 2.5.3
@mmanela
Copy link
Owner

mmanela commented Mar 22, 2017

Chutzpah is bound by the version of PhanomJs it uses (http://phantomjs.org/download.html). This will be resolved when version 2.5 comes out but I do not know when they plan to release.

@ILoveITScience
Copy link
Author

Thank you. I'll use babel to transpile the ecma 6 code to ecma 5.1. You can close the ticket.

@saroj08
Copy link

saroj08 commented Oct 16, 2017

i installed babel-cli but still i am getting error while inserting es6 syntax. Can you please share any config file or repo so that i can follow?

@Zelig880
Copy link

Zelig880 commented Oct 16, 2017 via email

@saroj08
Copy link

saroj08 commented Oct 17, 2017

Thanks Zelig

@ILoveITScience ILoveITScience changed the title let not recognized ECMA 6 not supported Aug 1, 2018
@mmanela
Copy link
Owner

mmanela commented Oct 3, 2018

@saroj08 @Zelig880 @ILoveITScience In the latest release I added support for running Chutzpah using node with JsDom or Chrome. This is early integration but will work for many. Learn more here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants