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

Built-in ES2015 support #20

Closed
sindresorhus opened this issue May 18, 2015 · 3 comments
Closed

Built-in ES2015 support #20

sindresorhus opened this issue May 18, 2015 · 3 comments
Labels
enhancement new functionality

Comments

@sindresorhus
Copy link
Member

Would be nice to support ES6 built-in at runtime by using the Babel require hook.

That way you can just write your tests in ES6 and have it run in any node version.

This is so nice:

test(t => {
  t.ok();
  t.end();
});
@sindresorhus sindresorhus changed the title Built-in ES6 support Built-in ES2015 support Aug 26, 2015
@sindresorhus sindresorhus added the enhancement new functionality label Aug 27, 2015
@andrepolischuk
Copy link
Contributor

May be use flag --esnext?

{
    "scripts": {
        "test": "ava --esnext"
    }
}

@sindresorhus
Copy link
Member Author

I was thinking ES2015 support by default. Can't think of any reason not to want ES2015 when there's no setup cost.

@andrepolischuk
Copy link
Contributor

It would be better then with flag.

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

No branches or pull requests

2 participants